tRevert "Don't need two try/catch statments if nothing happens when exception is caught" - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3d836ebc385b1c9a3eca76b9d0d1a4165d68d46d DIR parent 5c4be3196a8e16a0048caf9a649db5338297f6ed HTML Author: Amir Taaki <genjix@riseup.net> Date: Fri, 24 Aug 2012 22:01:08 +0100 Revert "Don't need two try/catch statments if nothing happens when exception is caught" This reverts commit 6b86942ccbb9c0d80f4af190343983440e859f4a. Diffstat: M lib/wallet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -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)