tqt gui: handle exceptions raised when opening wallet - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit b1eb6ebc911f9bbe6d1cd1f06e8dc8804f227bb4
DIR parent c7815bed0d6fc359849a989adfc29e5dcd67dcc9
HTML Author: ThomasV <thomasv@gitorious>
Date: Fri, 14 Nov 2014 11:23:21 +0100
qt gui: handle exceptions raised when opening wallet
Diffstat:
M gui/qt/__init__.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
DIR diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py
t@@ -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'