Angelos Evripiotis pushed to branch aevri/unknown-uri-452 at BuildStream / buildstream
Commits:
-
277dc5ce
by Angelos Evripiotis at 2018-10-24T11:06:23Z
1 changed file:
Changes:
... | ... | @@ -153,6 +153,8 @@ class DownloadableFileSource(Source): |
153 | 153 |
.format(self, self.url, e), temporary=True) from e
|
154 | 154 |
|
155 | 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 |
|