diff --git a/account.py b/account.py index 8c610a8..5b3bd85 100644 --- a/account.py +++ b/account.py @@ -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: "): diff --git a/domainLookup.py b/domainLookup.py index 85289ff..6cb04d0 100644 --- a/domainLookup.py +++ b/domainLookup.py @@ -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." diff --git a/main.py b/main.py index b8ea7db..e871ad8 100644 --- a/main.py +++ b/main.py @@ -208,7 +208,7 @@ def check_address(): if address is None: return jsonify({"result": "Invalid address"}) - return jsonify({"result": account_module.check_address(address)}) + return jsonify({"result": account_module.check_address(address.strip())}) #endregion #region Domains