tchanged to more descriptive exception - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit cdc16acabb45554cd82def8c312aa1444bf84149 DIR parent 6b86942ccbb9c0d80f4af190343983440e859f4a HTML Author: Jimbo77 <onlineregular@gmail.com> Date: Thu, 23 Aug 2012 18:11:57 -0700 changed to more descriptive exception Diffstat: M lib/wallet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -687,6 +687,7 @@ class Wallet: d = ast.literal_eval( data ) #parse raw data from reading wallet file interface.old_to_new(d) + self.seed_version = d.get('seed_version') self.master_public_key = d.get('master_public_key').decode('hex') self.use_encryption = d.get('use_encryption') t@@ -836,7 +837,7 @@ class Wallet: try: d.decode('hex') except: - raise BaseException("Invalid password") + raise ValueError("Invalid password") return d else: return s