qt gui: handle exceptions raised when opening wallet

This commit is contained in:
ThomasV 2014-11-14 11:23:21 +01:00
parent c7815bed0d
commit b1eb6ebc91
1 changed files with 5 additions and 1 deletions

View File

@ -151,7 +151,11 @@ class ElectrumGui:
storage = WalletStorage(self.config)
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()
else:
action = 'new'