fix bug when timestamp is None

This commit is contained in:
ThomasV 2013-02-18 21:12:39 +01:00
parent b23c3ff64a
commit 712e0a6c4a
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ class Wallet:
is_mine, v, fee = self.get_tx_value(tx_hash)
conf, timestamp = self.verifier.get_confirmations(tx_hash)
if conf:
if timestamp:
time_str = datetime.datetime.fromtimestamp(timestamp).isoformat(' ')[:-3]
else:
time_str = 'pending'