mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-11 13:09:52 +00:00
Qt: catch exception raised by load_wallet
This commit is contained in:
parent
b16800864b
commit
b69cb21333
1 changed files with 6 additions and 2 deletions
|
@ -159,8 +159,12 @@ class ElectrumGui:
|
||||||
w.bring_to_top()
|
w.bring_to_top()
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
wallet = self.daemon.load_wallet(path)
|
wallet = self.daemon.load_wallet(path)
|
||||||
if not wallet:
|
except BaseException as e:
|
||||||
|
QMessageBox.information(None, _('Error'), str(e), _('OK'))
|
||||||
|
return
|
||||||
|
if wallet is None:
|
||||||
wizard = InstallWizard(self.config, self.app, self.plugins, path)
|
wizard = InstallWizard(self.config, self.app, self.plugins, path)
|
||||||
wallet = wizard.run_and_get_wallet()
|
wallet = wizard.run_and_get_wallet()
|
||||||
if not wallet:
|
if not wallet:
|
||||||
|
|
Loading…
Add table
Reference in a new issue