1 parent 9208e66 commit cda9324Copy full SHA for cda9324
1 file changed
cashaddress/convert.py
@@ -63,6 +63,8 @@ def _address_type(address_type, version):
63
64
@staticmethod
65
def from_string(address_string):
66
+ if not isinstance(address_string, str):
67
+ raise InvalidAddress('Expected string as input')
68
if ':' not in address_string:
69
return Address._legacy_string(address_string)
70
else:
0 commit comments