]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
tools/helpers/http.py: also handle urllib.error.URLError exceptions instead of showin...
authorJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>
Wed, 3 Sep 2025 19:44:17 +0000 (21:44 +0200)
committerAlessandro Astone <ales.astone@gmail.com>
Sun, 21 Sep 2025 10:12:24 +0000 (12:12 +0200)
tools/helpers/http.py

index 2aac2b52f6282f4c183ee2e5d9855239a6dc768c..e0533701f46645b932926be0c81356311c163c0b 100644 (file)
@@ -148,3 +148,5 @@ def retrieve(url, headers=None):
     # Handle 404
     except urllib.error.HTTPError as e:
         return e.code, ""
     # Handle 404
     except urllib.error.HTTPError as e:
         return e.code, ""
+    except urllib.error.URLError as e:
+        return -2, ""