From 6e4ee6941a8f8b3ae636fc62da06f9314e46d3d3 Mon Sep 17 00:00:00 2001 From: Lily Foster Date: Tue, 16 Jan 2024 20:33:57 -0500 Subject: [PATCH] make gitlab updater work by tag when releases are disabled --- nix_update/version/gitlab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix_update/version/gitlab.py b/nix_update/version/gitlab.py index 9ad55a9..5809716 100644 --- a/nix_update/version/gitlab.py +++ b/nix_update/version/gitlab.py @@ -30,7 +30,7 @@ def fetch_gitlab_versions(url: ParseResult) -> list[Version]: for tag in json_tags: name = tag["name"] assert isinstance(name, str) - if tag["release"]: + if tag.get("release"): # TODO: has gitlab preleases? releases.append(Version(name)) else: