Bug fix: jeb_utils.utils.is_valid_host returned None instead of False if the host is not valid
This commit is contained in:
1 parent
5abaa71b27
commit
f3dd768446
3 files changed
+5
-2
No files matched your search
@@ -176,7 +176,7 @@ def is_valid_host(host: str) -> bool:
|
||||
ipaddress.ip_address(host)
|
||||
return True
|
||||
except ValueError:
|
||||
pass
|
||||
return False
|
||||
|
||||
def is_valid_port(port: str) -> bool:
|
||||
'''
|
||||
|
||||
Reference in new issue
Block a user