summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-07-04 16:40:29 +0530
committerSebastian Dröge <slomo@coaxion.net>2018-11-09 08:27:18 +0000
commite7f310e0967d4d95f11bd62fa5aa5d93d34b20c3 (patch)
tree4d026dc5c09ce32dc632443fa7d68ad3a45668b2
parent72c2ea8fb0845cc249fdd41add24fdd9aa4ad325 (diff)
cerbero: Fix fallback mirror usage with urllib
This was broken with the urllib implementation.
-rw-r--r--cerbero/build/source.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cerbero/build/source.py b/cerbero/build/source.py
index 7c7ee87e..70fb3583 100644
--- a/cerbero/build/source.py
+++ b/cerbero/build/source.py
@@ -128,7 +128,7 @@ class Tarball (Source):
try:
shell.download(self.url, self.download_path, check_cert=cc,
overwrite=redownload)
- except FatalError:
+ except (FatalError, urllib.error.URLError):
# Try our mirror
shell.download(self.mirror_url, self.download_path, check_cert=cc,
overwrite=redownload)