Skip to content

Commit

Permalink
Handle releases where name or tag_name is None properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dcermak committed Nov 13, 2023
1 parent 9c8c00f commit 78eba79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def fetch_releases(
ver = None

for ver_str_key in VER_STR_KEYS:
ver_str = release.get(ver_str_key, "").replace("v", "").strip()
ver_str = (release.get(ver_str_key, "") or "").replace("v", "").strip()
try:
ver = parse(ver_str)
break
Expand Down

0 comments on commit 78eba79

Please sign in to comment.