tfix bug when timestamp is None - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 712e0a6c4a0aab20f4a31b1140fa20318b92db06
DIR parent b23c3ff64a3f1dcbc33b14aa87c7e69e402e262e
HTML Author: ThomasV <thomasv@gitorious>
Date: Mon, 18 Feb 2013 21:12:39 +0100
fix bug when timestamp is None
Diffstat:
M lib/wallet.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/lib/wallet.py b/lib/wallet.py
t@@ -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'