From ec38af9bb01035c63e0b5a104f7c08782a2ca68b Mon Sep 17 00:00:00 2001 From: George McCabe <23407799+georgemccabe@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:29:47 -0700 Subject: [PATCH] per suggestion from @bikegeek, output 'None' if there were no items under a category --- internal/scripts/dev_tools/compile_official_release_notes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/scripts/dev_tools/compile_official_release_notes.py b/internal/scripts/dev_tools/compile_official_release_notes.py index 4aba87605..1b797c3f7 100644 --- a/internal/scripts/dev_tools/compile_official_release_notes.py +++ b/internal/scripts/dev_tools/compile_official_release_notes.py @@ -51,6 +51,9 @@ for cat in issues: nums = sorted([int(item) for item in issues[cat].keys()]) print(f" .. dropdown:: {cat}\n") + if not nums: + print(' None\n') + continue for num in nums: print(issues[cat][str(num)]) print()