tDon'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 6b86942ccbb9c0d80f4af190343983440e859f4a DIR parent 719b9d7d33c15589ffee41ba64020b6761058e2f HTML Author: Jimbo77 <onlineregular@gmail.com> Date: Thu, 23 Aug 2012 18:02:55 -0700 Don't need two try/catch statments if nothing happens when exception is caught Diffstat: M lib/wallet.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -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')