From ece457627b9c354847f1bb27222ae2d3fdb2175b Mon Sep 17 00:00:00 2001 From: Anilkumar18 <32846534+Anilkumar18@users.noreply.github.com> Date: Mon, 11 Jun 2018 17:54:22 +0530 Subject: [PATCH] Added a meaningful message on invalid public key --- gui/qt/main_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 6d5786d8e..f1efe4aed 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -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'))