Skip to content

Commit

Permalink
rest_api: deprecated sometimes isn't present?
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Mar 9, 2024
1 parent c27a912 commit 1cf5e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/autoupdate_app_sources/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def releases(self) -> list[dict[str, Any]]:

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]
Expand Down

0 comments on commit 1cf5e4f

Please sign in to comment.