electrum

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

commit 4e4091f80941cca548d5d01b9dfee2c7815032c9
parent 01abc06cd6f44235848d00e75d3f9a90687a48e6
Author: ThomasV <thomasv@gitorious>
Date:   Tue, 21 Feb 2012 23:27:21 +0100

exception

Diffstat:
Mclient/wallet.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/client/wallet.py b/client/wallet.py @@ -361,7 +361,10 @@ class Wallet: for_change = True else: raise BaseException("unknown address") - seed = self.pw_decode( self.seed, password) + try: + seed = self.pw_decode( self.seed, password) + except: + raise BaseException("Invalid password") secexp = self.stretch_key(seed) secexp = ( secexp + self.get_sequence(n,for_change) ) % order