From e6ad92ca50e00516afb51a4ce026be8e11520bd6 Mon Sep 17 00:00:00 2001 From: Fildrance Date: Mon, 31 Aug 2026 18:04:25 +0300 Subject: [PATCH] [HOTFIX] fix: make changelog discord publication not fail on missing 'labels' (#45779) fix: make changelog discord publication not fail on missing 'labels' tag in changelog entry (which does not exist). --- Tools/actions_changelog_rss.py | 3 ++- Tools/actions_changelogs_since_last_run.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Tools/actions_changelog_rss.py b/Tools/actions_changelog_rss.py index 9a82f7c8e7..757029b5a3 100755 --- a/Tools/actions_changelog_rss.py +++ b/Tools/actions_changelog_rss.py @@ -184,7 +184,8 @@ def generate_description_for_entries(entries: List[Any]) -> str: for entry in sorted(group, key=lambda x: x["time"]): for change in entry["changes"]: emoji = TYPES_TO_EMOJI.get(change["type"], "") - if EXPERIMENTAL_LABEL in entry["labels"]: + labels = entry.get("labels") or [] + if EXPERIMENTAL_LABEL in labels: emoji = f"{emoji}{EXPERIMENTAL_EMOJI}" msg = change["message"] desc.write(f"
  • {emoji} {html.escape(msg)}
  • ") diff --git a/Tools/actions_changelogs_since_last_run.py b/Tools/actions_changelogs_since_last_run.py index 9162075cec..ebb4e30820 100755 --- a/Tools/actions_changelogs_since_last_run.py +++ b/Tools/actions_changelogs_since_last_run.py @@ -242,7 +242,8 @@ def changelog_entries_to_message_lines(entries: Iterable[ChangelogEntry]) -> lis emoji = TYPES_TO_EMOJI.get(change["type"], "❓") message = change["message"] - if EXPERIMENTAL_LABEL in entry["labels"]: + labels = entry.get("labels") or [] + if EXPERIMENTAL_LABEL in labels: emoji = f"{emoji}{EXPERIMENTAL_EMOJI}" message_lines.append(create_change_line(emoji, message, url))