From a3882194dde090b59b5b0a352242b1814f273499 Mon Sep 17 00:00:00 2001 From: ZergLev <64711614+ZergLev@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:39:30 +0000 Subject: [PATCH] fixed typo (changed again how github variables are parsed) --- scripts/switcher_gen.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/switcher_gen.py b/scripts/switcher_gen.py index 93bc546e6..34504522e 100644 --- a/scripts/switcher_gen.py +++ b/scripts/switcher_gen.py @@ -32,12 +32,14 @@ def generate_version_switcher(): blacklisted_tags = os.getenv("VERSION_SWITCHER_TAG_BLACKLIST", default="") if blacklisted_tags == "": blacklisted_tags = [] - blacklisted_tags = blacklisted_tags.split(",") + else: + blacklisted_tags = blacklisted_tags.split(",") whitelisted_tags = os.getenv("VERSION_SWITCHER_TAG_WHITELIST", default="") if whitelisted_tags == "": whitelisted_tags = [] - whitelisted_tags = whitelisted_tags.split(",") + else: + whitelisted_tags = whitelisted_tags.split(",") # Retrieve and filter git tags repo = git.Repo("./")