diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gen_release_notes.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py index b323fc24046..889c0a43654 100755 --- a/bin/gen_release_notes.py +++ b/bin/gen_release_notes.py @@ -227,7 +227,12 @@ async def get_bug(session: aiohttp.ClientSession, bug_id: str) -> str: params = {'iids[]': bug_id} async with session.get(url, params=params) as response: content = await response.json() - return content[0]['title'] + if not content: + # issues marked as "confidential" look like "404" page for + # unauthorized users + return f'Confidential issue #{bug_id}' + else: + return content[0]['title'] async def get_shortlog(version: str) -> str: |