Bug fix: jeb_utils.utils.is_valid_host returned None instead of False if the host is not valid
This commit is contained in:
@@ -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