summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEric Engestrom <eric@engestrom.ch>2022-12-30 00:14:34 +0000
committerMarge Bot <emma+marge@anholt.net>2023-01-12 14:32:10 +0000
commit4a2635153c0981c5b0c40f49c06d784be5564572 (patch)
tree2ec8df243d70f77330d3dc5e7bf6a4a468be22b7 /bin
parentb114debffb5e30f5b585ffa69f3a8af625b622cc (diff)
downloadmesa-4a2635153c0981c5b0c40f49c06d784be5564572.tar.gz
gen_release_notes: avoid crashing when none of the commits mention closing an issue
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20459>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gen_release_notes.py5
1 files changed, 4 insertions, 1 deletions
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: