Angelos Evripiotis pushed to branch master at BuildStream / buildstream
Commits:
-
276d2195
by Angelos Evripiotis at 2018-10-25T10:17:49Z
-
2d012a21
by Angelos Evripiotis at 2018-10-25T10:17:49Z
1 changed file:
Changes:
... | ... | @@ -152,7 +152,9 @@ class DownloadableFileSource(Source): |
152 | 152 |
raise SourceError("{}: Error mirroring {}: {}"
|
153 | 153 |
.format(self, self.url, e), temporary=True) from e
|
154 | 154 |
|
155 |
- except (urllib.error.URLError, urllib.error.ContentTooShortError, OSError) as e:
|
|
155 |
+ except (urllib.error.URLError, urllib.error.ContentTooShortError, OSError, ValueError) as e:
|
|
156 |
+ # Note that urllib.request.Request in the try block may throw a
|
|
157 |
+ # ValueError for unknown url types, so we handle it here.
|
|
156 | 158 |
raise SourceError("{}: Error mirroring {}: {}"
|
157 | 159 |
.format(self, self.url, e), temporary=True) from e
|
158 | 160 |
|