electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 6b86942ccbb9c0d80f4af190343983440e859f4a
parent 719b9d7d33c15589ffee41ba64020b6761058e2f
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:
Mlib/wallet.py | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 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')