Qt: catch exception raised by load_wallet
This commit is contained in:
@@ -159,8 +159,12 @@ class ElectrumGui:
|
|||||||
w.bring_to_top()
|
w.bring_to_top()
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
wallet = self.daemon.load_wallet(path)
|
try:
|
||||||
if not wallet:
|
wallet = self.daemon.load_wallet(path)
|
||||||
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user