diff --git a/aperturedb/__init__.py b/aperturedb/__init__.py index 3babebc7..4c9f9fb1 100644 --- a/aperturedb/__init__.py +++ b/aperturedb/__init__.py @@ -83,7 +83,7 @@ def emit(self, record): try: latest_version = json.loads(requests.get( - "https://pypi.org/pypi/aperturedb/json").text)["info"]["version"] + "https://pypi.org/pypi/aperturedb/json", timeout=1).text)["info"]["version"] except Exception as e: logger.warning( f"Failed to get latest version: {e}. You are using version {__version__}")