Skip to content

Commit

Permalink
When there is no name for a GitHub user, don't include a None.
Browse files Browse the repository at this point in the history
Signed-off-by: David Venable <dlv@amazon.com>
  • Loading branch information
dlvenable committed Aug 29, 2024
1 parent eb1cfce commit b594481
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion release/script/blog/format-release-thank-you.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@

for author in sorted(authors, key=str.lower):
user = json.loads(os.popen(f"gh api users/{author}").read())
print(f"* [{user['login']}]({user['html_url']}) -- {user['name']}")
if user['name'] != None:
print(f"* [{user['login']}]({user['html_url']}) -- {user['name']}")
else:
print(f"* [{user['login']}]({user['html_url']})")

0 comments on commit b594481

Please sign in to comment.