git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6b86942
)
changed to more descriptive exception
author
Jimbo77
<onlineregular@gmail.com>
Fri, 24 Aug 2012 01:11:57 +0000 (18:11 -0700)
committer
Jimbo77
<onlineregular@gmail.com>
Fri, 24 Aug 2012 01:11:57 +0000 (18:11 -0700)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
126b9ed
..
478b6ae
100644
(file)
--- 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