From: Johannes Schauer Marin Rodrigues Date: Wed, 3 Sep 2025 19:44:17 +0000 (+0200) Subject: tools/helpers/http.py: also handle urllib.error.URLError exceptions instead of showin... X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/a62118db494bfd3d1fc176b60fe2abec92241e4f?ds=sidebyside tools/helpers/http.py: also handle urllib.error.URLError exceptions instead of showing traceback --- 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, ""