diff --git a/mpcdf_build_status.py b/mpcdf_build_status.py index cec82a73e1e01fa3449aa20554eabc23d558351a..7fae4caf17c9c399e5d252b891390966b680cbca 100644 --- a/mpcdf_build_status.py +++ b/mpcdf_build_status.py @@ -48,7 +48,14 @@ def do_mpcdf_build_status(self, subcmd, opts, *args): if project.startswith("software:") or project == "home:{0}".format(user): print(project) project_url = osc.core.makeurl(api_url, ["build", project, "_result?view=status&multibuild=1&package={0}".format(package)]) - resultlist = ElementTree.fromstringlist(osc.core.streamfile(project_url, osc.core.http_GET)) + try: + resultlist = ElementTree.fromstringlist(osc.core.streamfile(project_url, osc.core.http_GET)) + except osc.core.HTTPError as e: + if e.code == 404: + print(" {0} not found".format(package)) + continue + else: + raise e actualPackages = set() for result in resultlist.findall("./result"):