From 3d836ebc385b1c9a3eca76b9d0d1a4165d68d46d Mon Sep 17 00:00:00 2001 From: Amir Taaki Date: Fri, 24 Aug 2012 22:01:08 +0100 Subject: [PATCH] Revert "Don't need two try/catch statments if nothing happens when exception is caught" This reverts commit 6b86942ccbb9c0d80f4af190343983440e859f4a. --- lib/wallet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index bded27cfe..d81da531c 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -694,7 +694,9 @@ class Wallet: f = open(self.path,"r") data = f.read() f.close() - + except: + return + try: d = ast.literal_eval( data ) #parse raw data from reading wallet file interface.old_to_new(d)