From a14ce78949d401c74cc7abd85c0c3d1255cb3c38 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Sat, 9 Dec 2023 10:48:57 +0100 Subject: [PATCH] Adapt to iFixit API change where leaf categories are now null --- ifixit2zim/scraper_category.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ifixit2zim/scraper_category.py b/ifixit2zim/scraper_category.py index 2d96491..281e9a8 100644 --- a/ifixit2zim/scraper_category.py +++ b/ifixit2zim/scraper_category.py @@ -65,7 +65,8 @@ def _process_categories(self, categories): for category in categories: category_key = self._get_category_key_from_title(category) self._add_category_to_scrape(category_key, category, True) - self._process_categories(categories[category]) + if categories[category]: + self._process_categories(categories[category]) def build_expected_items(self): if Global.conf.no_category: