diff --git a/main.py b/main.py index e3043aa60..03dd0e69a 100644 --- a/main.py +++ b/main.py @@ -59,7 +59,7 @@ def check_and_modify_ip(ip_address: str) -> str: else: return "localhost" - except ValueError: + except (ValueError, socket.gaierror): return "localhost"