Qt: catch exception raised by load_wallet

This commit is contained in:
ThomasV 2017-01-07 08:57:25 +01:00
parent b16800864b
commit b69cb21333
1 changed files with 6 additions and 2 deletions

View File

@ -159,8 +159,12 @@ class ElectrumGui:
w.bring_to_top()
break
else:
wallet = self.daemon.load_wallet(path)
if not wallet:
try:
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)
wallet = wizard.run_and_get_wallet()
if not wallet: