From 0e5c789f758f28daa807a9538ff0007690b3edc4 Mon Sep 17 00:00:00 2001 From: vas3k Date: Fri, 7 Oct 2022 20:15:48 +0200 Subject: [PATCH] fix: TypeError object of type 'NoneType' has no len() --- scripts/initialize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/initialize.py b/scripts/initialize.py index 2dbe129..3915b3c 100644 --- a/scripts/initialize.py +++ b/scripts/initialize.py @@ -118,7 +118,7 @@ def initialize(config, board_slug, upload_favicons, always_yes): if not feed.icon: html = html or load_page_html(feed_url) icon = feed_config.get("icon") - if not icon: + if not icon and html: icon = find_favicon(feed_url, html) print(f"- found favicon: {icon}")