diff --git a/server/app/helpers.py b/server/app/helpers.py index b38dca54..a3c5a520 100644 --- a/server/app/helpers.py +++ b/server/app/helpers.py @@ -183,7 +183,7 @@ class Ping: @staticmethod def __call__() -> bool: try: - requests.get("https://google.com") + requests.get("https://google.com", timeout=10) return True - except requests.exceptions.ConnectionError: + except (requests.exceptions.ConnectionError, requests.Timeout): return False