From 79309c962568fed5069c65a2df3e4c1027411acf Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 26 Feb 2014 16:24:37 +0100 Subject: [PATCH] strip whitespaces from seed --- lib/wallet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index 894679261..59ccf2999 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -1702,8 +1702,10 @@ class OldWallet(Wallet): self.seed_version = 4 # see if seed was entered as hex + seed = seed.strip() try: - seed.strip().decode('hex') + assert seed + seed.decode('hex') self.seed = str(seed) return except Exception: