From 1cf5e4f88bf9e8ca3b6ea2006eee61799b3b034d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 9 Mar 2024 14:26:23 +0100 Subject: [PATCH] rest_api: deprecated sometimes isn't present? --- tools/autoupdate_app_sources/rest_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/autoupdate_app_sources/rest_api.py b/tools/autoupdate_app_sources/rest_api.py index 363c97a6..35bda428 100644 --- a/tools/autoupdate_app_sources/rest_api.py +++ b/tools/autoupdate_app_sources/rest_api.py @@ -134,7 +134,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, ref_type: RefType) -> str: name = self.project_path.split("/")[-1]