From 78eba79236d986202b04db6b5880968e70517784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Mon, 13 Nov 2023 15:03:17 +0100 Subject: [PATCH] Handle releases where name or tag_name is `None` properly --- scraper/scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/scraper.py b/scraper/scraper.py index 8992e99..70f970a 100644 --- a/scraper/scraper.py +++ b/scraper/scraper.py @@ -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