fix: TypeError object of type 'NoneType' has no len()

This commit is contained in:
vas3k 2022-10-07 20:15:48 +02:00
parent 2ec0f8f2af
commit 0e5c789f75
1 changed files with 1 additions and 1 deletions

View File

@ -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}")