From b1eb6ebc911f9bbe6d1cd1f06e8dc8804f227bb4 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 14 Nov 2014 11:23:21 +0100 Subject: [PATCH] qt gui: handle exceptions raised when opening wallet --- gui/qt/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py index 03f22199..7211b186 100644 --- a/gui/qt/__init__.py +++ b/gui/qt/__init__.py @@ -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'