From 6b86942ccbb9c0d80f4af190343983440e859f4a Mon Sep 17 00:00:00 2001 From: Jimbo77 Date: Thu, 23 Aug 2012 18:02:55 -0700 Subject: [PATCH] Don't need two try/catch statments if nothing happens when exception is caught --- lib/wallet.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index e95d545c..126b9ede 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -684,9 +684,7 @@ 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) self.seed_version = d.get('seed_version')