Fix None checks for product history index

This commit is contained in:
Hoang Hong Quan
2025-03-23 14:01:53 +07:00
parent 08c21c8d8f
commit 6e201bb180

View File

@@ -185,7 +185,7 @@ class gatheringFiles:
if product.github_repo:
product_download_index = self.get_product_index(bootloader_kext_urls, product.github_repo.get("repo"))
if product_download_index:
if product_download_index is not None:
_, product_id, product_download_url = bootloader_kext_urls[product_download_index].values()
if product_download_url in seen_download_urls: