1
0

fix: is_address, is_private_key: check that text is not empty

This commit is contained in:
ThomasV
2014-05-05 10:03:31 +02:00
parent 8ca7964dac
commit 97a6f91451

View File

@@ -1667,6 +1667,8 @@ class Wallet(object):
@classmethod
def is_address(self, text):
if not text:
return False
for x in text.split():
if not bitcoin.is_address(x):
return False
@@ -1674,6 +1676,8 @@ class Wallet(object):
@classmethod
def is_private_key(self, text):
if not text:
return False
for x in text.split():
if not bitcoin.is_private_key(x):
return False