git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b23c3ff
)
fix bug when timestamp is None
author
ThomasV
<thomasv@gitorious>
Mon, 18 Feb 2013 20:12:39 +0000 (21:12 +0100)
committer
ThomasV
<thomasv@gitorious>
Mon, 18 Feb 2013 20:12:39 +0000 (21:12 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
817f206
..
2a76b38
100644
(file)
--- a/
lib/wallet.py
+++ b/
lib/wallet.py
@@
-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'