From a62118db494bfd3d1fc176b60fe2abec92241e4f Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Wed, 3 Sep 2025 21:44:17 +0200 Subject: [PATCH] tools/helpers/http.py: also handle urllib.error.URLError exceptions instead of showing traceback --- tools/helpers/http.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/helpers/http.py b/tools/helpers/http.py index 2aac2b5..e053370 100644 --- a/tools/helpers/http.py +++ b/tools/helpers/http.py @@ -148,3 +148,5 @@ def retrieve(url, headers=None): # Handle 404 except urllib.error.HTTPError as e: return e.code, "" + except urllib.error.URLError as e: + return -2, "" -- 2.47.3