From 4a2635153c0981c5b0c40f49c06d784be5564572 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 30 Dec 2022 00:14:34 +0000 Subject: [PATCH] gen_release_notes: avoid crashing when none of the commits mention closing an issue Part-of: --- bin/gen_release_notes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py index adb3442441e..3ade3d93c8a 100755 --- a/bin/gen_release_notes.py +++ b/bin/gen_release_notes.py @@ -217,7 +217,10 @@ async def parse_issues(commits: str) -> typing.List[str]: async def gather_bugs(version: str) -> typing.List[str]: commits = await gather_commits(version) - issues = await parse_issues(commits) + if commits: + issues = await parse_issues(commits) + else: + issues = [] loop = asyncio.get_event_loop() async with aiohttp.ClientSession(loop=loop) as session: