From 3276c3394ff2f0009ca59900d7ab1efa6a9dd6c8 Mon Sep 17 00:00:00 2001 From: thomasv Date: Fri, 11 Jan 2013 18:01:40 +0100 Subject: [PATCH] strip spaces around private key --- lib/gui_qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gui_qt.py b/lib/gui_qt.py index 25fab4851..cb2ed5933 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: