Added a meaningful message on invalid public key

This commit is contained in:
Anilkumar18 2018-06-11 17:54:22 +05:30 committed by GitHub
parent 5a75ce74d7
commit ece457627b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2248,7 +2248,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
encrypted_e.setText(encrypted.decode('ascii'))
except BaseException as e:
traceback.print_exc(file=sys.stdout)
self.show_warning(str(e))
self.show_warning("Invalid Public key")
def encrypt_message(self, address=''):
d = WindowModalDialog(self, _('Encrypt/decrypt Message'))