electrum

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

commit e444ff35194f9f332ed8a49ff0df0a8166bad47b
parent e7ea3e5d01257db218c7b97bac36ff5ea5d246e4
Author: ThomasV <thomasv@gitorious>
Date:   Thu, 16 Jul 2015 10:03:07 +0200

catch invalid password exception

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

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -739,7 +739,11 @@ class ElectrumWindow(QMainWindow): msg = _('This payment request will be signed.') + '\n' + _('Please enter your password') password = self.password_dialog(msg) if password: - alias_privkey = self.wallet.get_private_key(alias_addr, password)[0] + try: + alias_privkey = self.wallet.get_private_key(alias_addr, password)[0] + except Exception as e: + QMessageBox.warning(parent, _('Error'), str(e), _('OK')) + return else: return else: