electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit b1eb6ebc911f9bbe6d1cd1f06e8dc8804f227bb4
parent c7815bed0d6fc359849a989adfc29e5dcd67dcc9
Author: ThomasV <thomasv@gitorious>
Date:   Fri, 14 Nov 2014 11:23:21 +0100

qt gui: handle exceptions raised when opening wallet

Diffstat:
Mgui/qt/__init__.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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'