tcatch invalid password exception - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit e444ff35194f9f332ed8a49ff0df0a8166bad47b DIR parent e7ea3e5d01257db218c7b97bac36ff5ea5d246e4 HTML Author: ThomasV <thomasv@gitorious> Date: Thu, 16 Jul 2015 10:03:07 +0200 catch invalid password exception Diffstat: M gui/qt/main_window.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -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: