Skip to content

Commit

Permalink
trying to fix dumb python bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kyclark committed Feb 27, 2025
1 parent 2c8a884 commit 41bbb80
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update_release_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ def get_args():
def main():
args = get_args()
releases = get_releases_data()
release_to_update = find_release_by_version(releases, args.version)

if release_to_update:
if release_to_update := find_release_by_version(releases, args.version):
release_id = release_to_update["id"]
current_body = release_to_update.get("body", "")
if current_body is None:
current_body = ""

markdown_table = generate_markdown_table(release_to_update)
print(markdown_table)
Expand Down

0 comments on commit 41bbb80

Please sign in to comment.