diff --git a/tools/autoupdate_app_sources/rest_api.py b/tools/autoupdate_app_sources/rest_api.py index 7ef3a1aa..6b67d28f 100644 --- a/tools/autoupdate_app_sources/rest_api.py +++ b/tools/autoupdate_app_sources/rest_api.py @@ -151,7 +151,7 @@ class GitlabAPI: def archived(self) -> bool: """Return the archival status for the repository""" - return self.internal_api(f"projects/{self.project_id}")["archived"] + return self.internal_api(f"projects/{self.project_id}").get("archived", False) def url_for_ref(self, ref: str, _: RefType) -> str: name = self.project_path.split("/")[-1]