1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-05 08:59:19 +02:00

raise 'fake' HTTPError 404 on offline build

This commit is contained in:
lethliel
2018-03-07 13:48:26 +01:00
parent 17afaa9f85
commit 5de19d75d5

View File

@@ -265,8 +265,7 @@ class Fetcher:
try: try:
if self.offline and not os.path.exists(dest): if self.offline and not os.path.exists(dest):
# try key from parent project # try key from parent project
# do nothing atm raise HTTPError(url, 404, None, None, None)
# FIXME: needs to raise a HTTP Error
elif not self.offline: elif not self.offline:
OscFileGrabber().urlgrab(url, dest) OscFileGrabber().urlgrab(url, dest)
# not that many keys usually # not that many keys usually