add TypeError
This commit is contained in:
@ -233,7 +233,7 @@ def is_ip(address):
|
||||
try:
|
||||
socket.inet_pton(family, address)
|
||||
return True
|
||||
except (TypeError, OSError, IOError):
|
||||
except (TypeError, ValueError, OSError, IOError):
|
||||
pass
|
||||
return False
|
||||
|
||||
|
Reference in New Issue
Block a user