diff --git a/lib/gui_qt.py b/lib/gui_qt.py index 25fab485..cb2ed593 100644 --- a/lib/gui_qt.py +++ b/lib/gui_qt.py @@ -1631,7 +1631,7 @@ class ElectrumWindow(QMainWindow): text, ok = QInputDialog.getText(self, _('Import private key'), _('Private Key') + ':') if not ok: return - sec = str(text) + sec = str(text).strip() if self.wallet.use_encryption: password = self.password_dialog() if not password: