tcommand line restore: strip text - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit e0ba4a967c112bcd59382fc10ce6accd7a67fce3 DIR parent 2bb2c2bceefabeff4d74a6b0cfbdb9c05e96dda3 HTML Author: ThomasV <thomasv@electrum.org> Date: Wed, 5 Oct 2016 10:25:48 +0200 command line restore: strip text Diffstat: M electrum | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -116,7 +116,7 @@ def run_non_RPC(config): return prompt_password("Password (hit return if you do not wish to encrypt your wallet):") if cmdname == 'restore': - text = config.get('text') + text = config.get('text').strip() passphrase = config.get('passphrase', '') password = password_dialog() if keystore.is_private(text) else None if keystore.is_seed(text): t@@ -124,7 +124,7 @@ def run_non_RPC(config): elif keystore.is_any_key(text): k = keystore.from_keys(text) else: - sys.exit(str(e)) + sys.exit("Error: Seed or key not recognized") k.update_password(None, password) storage.put('keystore', k.dump()) storage.put('wallet_type', 'standard')