electrum

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

commit cdc16acabb45554cd82def8c312aa1444bf84149
parent 6b86942ccbb9c0d80f4af190343983440e859f4a
Author: Jimbo77 <onlineregular@gmail.com>
Date:   Thu, 23 Aug 2012 18:11:57 -0700

changed to more descriptive exception

Diffstat:
Mlib/wallet.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -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') @@ -836,7 +837,7 @@ class Wallet: try: d.decode('hex') except: - raise BaseException("Invalid password") + raise ValueError("Invalid password") return d else: return s