From 6e201bb1809f9bf44254cf3cf78b0e66fcbe2f61 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Sun, 23 Mar 2025 14:01:53 +0700 Subject: [PATCH] Fix None checks for product history index --- Scripts/gathering_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/gathering_files.py b/Scripts/gathering_files.py index 3ea2e4f..02d6976 100644 --- a/Scripts/gathering_files.py +++ b/Scripts/gathering_files.py @@ -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: