From 712e0a6c4a0aab20f4a31b1140fa20318b92db06 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 18 Feb 2013 21:12:39 +0100 Subject: [PATCH] fix bug when timestamp is None --- lib/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index 817f20651..2a76b38e1 100644 --- 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'