git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e355c29
)
fix: do not create old_wallet if seed is empty because user typed gibberish
author
ThomasV
<thomasv@gitorious>
Wed, 26 Feb 2014 15:21:38 +0000 (16:21 +0100)
committer
ThomasV
<thomasv@gitorious>
Wed, 26 Feb 2014 15:21:38 +0000 (16:21 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
a5c3336
..
8946792
100644
(file)
--- a/
lib/wallet.py
+++ b/
lib/wallet.py
@@
-1716,8
+1716,12
@@
class OldWallet(Wallet):
raise
self.seed = mnemonic.mn_decode(words)
+
+ if not self.seed:
+ raise Exception("Invalid seed")
+
def get_master_public_key(self):
return self.storage.get("master_public_key")