strip whitespaces from seed
This commit is contained in:
parent
22408c1316
commit
79309c9625
|
@ -1702,8 +1702,10 @@ class OldWallet(Wallet):
|
||||||
self.seed_version = 4
|
self.seed_version = 4
|
||||||
|
|
||||||
# see if seed was entered as hex
|
# see if seed was entered as hex
|
||||||
|
seed = seed.strip()
|
||||||
try:
|
try:
|
||||||
seed.strip().decode('hex')
|
assert seed
|
||||||
|
seed.decode('hex')
|
||||||
self.seed = str(seed)
|
self.seed = str(seed)
|
||||||
return
|
return
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in New Issue