fix: Trim address before parsing
All checks were successful
Build Docker / Build Image (push) Successful in 37s
All checks were successful
Build Docker / Build Image (push) Successful in 37s
This commit is contained in:
parent
47f210e51b
commit
80a4628d77
@ -388,7 +388,7 @@ def check_hip2(domain: str):
|
||||
domain = domain.lower()
|
||||
|
||||
if re.match(r'^[a-zA-Z0-9\-\.]{1,63}$', domain) is None:
|
||||
return 'Invalid address'
|
||||
return 'Invalid domain'
|
||||
|
||||
address = domainLookup.hip2(domain)
|
||||
if address.startswith("Hip2: "):
|
||||
|
@ -114,6 +114,7 @@ def hip2(domain: str):
|
||||
|
||||
# Catch all exceptions
|
||||
except Exception as e:
|
||||
print(f"Hip2: Lookup failed with error: {e}")
|
||||
return "Hip2: Lookup failed."
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user