commit 712e0a6c4a0aab20f4a31b1140fa20318b92db06
parent b23c3ff64a3f1dcbc33b14aa87c7e69e402e262e
Author: ThomasV <thomasv@gitorious>
Date: Mon, 18 Feb 2013 21:12:39 +0100
fix bug when timestamp is None
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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'