diff --git a/osc/fetch.py b/osc/fetch.py index 51d942932c..423039869c 100644 --- a/osc/fetch.py +++ b/osc/fetch.py @@ -279,7 +279,7 @@ def run(self, buildinfo): sys.exit(0) except URLGrabError as e: # Not found is okay, let's go to the next project - if e.code != 404: + if e.errno == 14 and e.code != 404: print("Invalid answer from server", e, file=sys.stderr) sys.exit(1)