1
0

use None as timestamp for pending transactions

This commit is contained in:
thomasv
2012-11-16 10:18:35 +01:00
parent b39f1424ec
commit 8ec2b16e21
3 changed files with 11 additions and 13 deletions

View File

@@ -333,8 +333,9 @@ class ElectrumWindow(QMainWindow):
tx = self.wallet.transactions.get(tx_hash)
conf = self.wallet.verifier.get_confirmations(tx_hash)
if conf:
time_str = datetime.datetime.fromtimestamp( tx['timestamp']).isoformat(' ')[:-3]
timestamp = tx.get('timestamp')
if conf and timestamp:
time_str = datetime.datetime.fromtimestamp(timestamp).isoformat(' ')[:-3]
else:
time_str = 'pending'