mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 18:25:21 +00:00
changed to more descriptive exception
This commit is contained in:
parent
6b86942ccb
commit
cdc16acabb
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue