catch invalid password exception
This commit is contained in:
parent
e7ea3e5d01
commit
e444ff3519
|
@ -739,7 +739,11 @@ class ElectrumWindow(QMainWindow):
|
||||||
msg = _('This payment request will be signed.') + '\n' + _('Please enter your password')
|
msg = _('This payment request will be signed.') + '\n' + _('Please enter your password')
|
||||||
password = self.password_dialog(msg)
|
password = self.password_dialog(msg)
|
||||||
if password:
|
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:
|
else:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue