Skip to content

Commit cda9324

Browse files
committed
None for good
1 parent 9208e66 commit cda9324

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cashaddress/convert.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ def _address_type(address_type, version):
6363

6464
@staticmethod
6565
def from_string(address_string):
66+
if not isinstance(address_string, str):
67+
raise InvalidAddress('Expected string as input')
6668
if ':' not in address_string:
6769
return Address._legacy_string(address_string)
6870
else:

0 commit comments

Comments
 (0)