qt gui: handle exceptions raised when opening wallet
This commit is contained in:
@@ -151,7 +151,11 @@ class ElectrumGui:
|
|||||||
|
|
||||||
storage = WalletStorage(self.config)
|
storage = WalletStorage(self.config)
|
||||||
if storage.file_exists:
|
if storage.file_exists:
|
||||||
wallet = Wallet(storage)
|
try:
|
||||||
|
wallet = Wallet(storage)
|
||||||
|
except BaseException as e:
|
||||||
|
QMessageBox.warning(None, _('Warning'), str(e), _('OK'))
|
||||||
|
return
|
||||||
action = wallet.get_action()
|
action = wallet.get_action()
|
||||||
else:
|
else:
|
||||||
action = 'new'
|
action = 'new'
|
||||||
|
|||||||
Reference in New Issue
Block a user