Browse Source

Handle exceptions on parsing better

283
Maran 12 years ago
parent
commit
c50103870e
  1. 3
      lib/gui_lite.py

3
lib/gui_lite.py

@ -748,11 +748,12 @@ class MiniActuator:
for item in self.wallet.get_tx_history():
tx_hash, confirmations, is_mine, value, fee, balance, timestamp = item
if confirmations:
if timestamp is not None:
try:
time_string = datetime.datetime.fromtimestamp( timestamp).isoformat(' ')[:-3]
except [RuntimeError, TypeError, NameError] as reason:
print reason
time_string = "unknown"
pass
else:
time_string = "pending"

Loading…
Cancel
Save