mirror of
https://github.com/openSUSE/osc.git
synced 2025-10-04 16:49:20 +02:00
raise 'fake' HTTPError 404 on offline build
This commit is contained in:
@@ -265,8 +265,7 @@ class Fetcher:
|
||||
try:
|
||||
if self.offline and not os.path.exists(dest):
|
||||
# try key from parent project
|
||||
# do nothing atm
|
||||
# FIXME: needs to raise a HTTP Error
|
||||
raise HTTPError(url, 404, None, None, None)
|
||||
elif not self.offline:
|
||||
OscFileGrabber().urlgrab(url, dest)
|
||||
# not that many keys usually
|
||||
|
Reference in New Issue
Block a user