tcatch invalid password exceptions in sign_raw_transaction too - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 26328d0458c9900fc9ddf8d66071fef803d37f38 DIR parent 7ceeb7e67a20f0077f085045724061c1235d1f3b HTML Author: ThomasV <thomasv@gitorious> Date: Mon, 16 Jun 2014 18:18:02 +0200 catch invalid password exceptions in sign_raw_transaction too 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@@ -1815,6 +1815,7 @@ class ElectrumWindow(QMainWindow): def show_qrcode(self, data, title = _("QR code")): if not data: return + print_error("qrcode:", data) d = QRDialog(data, self, title) d.exec_() t@@ -2082,7 +2083,10 @@ class ElectrumWindow(QMainWindow): @protected def sign_raw_transaction(self, tx, input_info, password): - self.wallet.signrawtransaction(tx, input_info, [], password) + try: + self.wallet.signrawtransaction(tx, input_info, [], password) + except Exception as e: + QMessageBox.warning(self, _("Error"), str(e)) def do_process_from_text(self): text = text_dialog(self, _('Input raw transaction'), _("Transaction:"), _("Load transaction"))