From 676d2e2ef59552021bd98b2387ec1f137ae59d66 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 16 Feb 2025 19:24:40 +0100 Subject: [PATCH] build: Fixed release note generator script --- dist/gen_release_notes.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dist/gen_release_notes.py b/dist/gen_release_notes.py index bb0b7d923..8d327cf72 100644 --- a/dist/gen_release_notes.py +++ b/dist/gen_release_notes.py @@ -32,11 +32,17 @@ def main(args: list) -> int: sorted_commits = {} for commit in master_commits: - category, commit_name = commit.split(":", 1) + if commit == "": + continue - if category not in sorted_commits: - sorted_commits[category] = [] - sorted_commits[category].append(commit_name) + try: + category, commit_name = commit.split(":", 1) + + if category not in sorted_commits: + sorted_commits[category] = [] + sorted_commits[category].append(commit_name) + except: + print(f"Failed to parse commit: {commit}") for category in sorted_commits: print(f"## {category}\n")