Browse Source

don't use assert is is_xprv (weird kivy bug)

283
ThomasV 9 years ago
parent
commit
4f0631d78d
  1. 6
      lib/wallet.py

6
lib/wallet.py

@ -1987,8 +1987,9 @@ class Wallet(object):
@staticmethod
def is_xpub(text):
if text[0:4] != 'xpub':
return False
try:
assert text[0:4] == 'xpub'
deserialize_xkey(text)
return True
except:
@ -1996,8 +1997,9 @@ class Wallet(object):
@staticmethod
def is_xprv(text):
if text[0:4] != 'xprv':
return False
try:
assert text[0:4] == 'xprv'
deserialize_xkey(text)
return True
except:

Loading…
Cancel
Save