Browse Source

qt gui: handle exceptions raised when opening wallet

master
ThomasV 11 years ago
parent
commit
b1eb6ebc91
  1. 6
      gui/qt/__init__.py

6
gui/qt/__init__.py

@ -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'

Loading…
Cancel
Save