Skip to content

Commit

Permalink
Adapt to iFixit API change where leaf categories are now null
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Dec 9, 2023
1 parent b05b800 commit a14ce78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ifixit2zim/scraper_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a14ce78

Please sign in to comment.