mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
raise exception when seed version does not match
This commit is contained in:
parent
9b28ed9ba0
commit
6d8eebe2db
2 changed files with 2 additions and 2 deletions
|
@ -154,6 +154,7 @@ class ElectrumGui:
|
||||||
try:
|
try:
|
||||||
wallet = Wallet(storage)
|
wallet = Wallet(storage)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
|
traceback.print_exc(file=sys.stdout)
|
||||||
QMessageBox.warning(None, _('Warning'), str(e), _('OK'))
|
QMessageBox.warning(None, _('Warning'), str(e), _('OK'))
|
||||||
return
|
return
|
||||||
action = wallet.get_action()
|
action = wallet.get_action()
|
||||||
|
|
|
@ -1628,8 +1628,7 @@ class Wallet(object):
|
||||||
msg = "This wallet seed is not supported anymore."
|
msg = "This wallet seed is not supported anymore."
|
||||||
if seed_version in [5, 7, 8, 9]:
|
if seed_version in [5, 7, 8, 9]:
|
||||||
msg += "\nTo open this wallet, try 'git checkout seed_v%d'"%seed_version
|
msg += "\nTo open this wallet, try 'git checkout seed_v%d'"%seed_version
|
||||||
print msg
|
raise BaseException(msg)
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
run_hook('add_wallet_types', wallet_types)
|
run_hook('add_wallet_types', wallet_types)
|
||||||
wallet_type = storage.get('wallet_type')
|
wallet_type = storage.get('wallet_type')
|
||||||
|
|
Loading…
Add table
Reference in a new issue