diff --git a/bin/packaging-data-fetch-downstream b/bin/packaging-data-fetch-downstream index 5ad476ba3d2be33468efe26f2413d7c79cf9f584..38c4d1c9b73f48a799cb604a2a6a402dedc6b79e 100755 --- a/bin/packaging-data-fetch-downstream +++ b/bin/packaging-data-fetch-downstream @@ -170,7 +170,9 @@ class DownstreamFetcher: component = project.project.files.raw( file_path=COMPONENT_FILE, ref=branch.name ) - except gitlab.exceptions.GitlabGetError: + except gitlab.exceptions.GitlabGetError as e: + if e.response_code != 404: + raise logging.warning( f"Package {project.packagename} does not have component on branch {branch.name}" ) @@ -185,7 +187,9 @@ class DownstreamFetcher: ) try: project.project.files.raw(file_path=COPYRIGHT_FILE, ref=branch.name) - except gitlab.exceptions.GitlabGetError: + except gitlab.exceptions.GitlabGetError as e: + if e.response_code != 404: + raise logging.info( f"Package {project.packagename} does not have license report on branch {branch.name}" )