catch invalid password exceptions in sign_raw_transaction too
This commit is contained in:
parent
7ceeb7e67a
commit
26328d0458
|
@ -1815,6 +1815,7 @@ class ElectrumWindow(QMainWindow):
|
||||||
def show_qrcode(self, data, title = _("QR code")):
|
def show_qrcode(self, data, title = _("QR code")):
|
||||||
if not data:
|
if not data:
|
||||||
return
|
return
|
||||||
|
print_error("qrcode:", data)
|
||||||
d = QRDialog(data, self, title)
|
d = QRDialog(data, self, title)
|
||||||
d.exec_()
|
d.exec_()
|
||||||
|
|
||||||
|
@ -2082,7 +2083,10 @@ class ElectrumWindow(QMainWindow):
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
def sign_raw_transaction(self, tx, input_info, password):
|
def sign_raw_transaction(self, tx, input_info, password):
|
||||||
|
try:
|
||||||
self.wallet.signrawtransaction(tx, input_info, [], password)
|
self.wallet.signrawtransaction(tx, input_info, [], password)
|
||||||
|
except Exception as e:
|
||||||
|
QMessageBox.warning(self, _("Error"), str(e))
|
||||||
|
|
||||||
def do_process_from_text(self):
|
def do_process_from_text(self):
|
||||||
text = text_dialog(self, _('Input raw transaction'), _("Transaction:"), _("Load transaction"))
|
text = text_dialog(self, _('Input raw transaction'), _("Transaction:"), _("Load transaction"))
|
||||||
|
|
Loading…
Reference in New Issue