diff options
author | Eric Engestrom <eric@engestrom.ch> | 2022-12-30 00:14:34 +0000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-01-12 14:32:10 +0000 |
commit | 4a2635153c0981c5b0c40f49c06d784be5564572 (patch) | |
tree | 2ec8df243d70f77330d3dc5e7bf6a4a468be22b7 | |
parent | b114debffb5e30f5b585ffa69f3a8af625b622cc (diff) | |
download | mesa-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>
-rwxr-xr-x | bin/gen_release_notes.py | 5 |
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: |