Browse Source

Handle exceptions on parsing better

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

11
lib/gui_lite.py

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

Loading…
Cancel
Save