Skip to content

Commit 0e5c789

Browse files
committed
fix: TypeError object of type 'NoneType' has no len()
1 parent 2ec0f8f commit 0e5c789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/initialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def initialize(config, board_slug, upload_favicons, always_yes):
118118
if not feed.icon:
119119
html = html or load_page_html(feed_url)
120120
icon = feed_config.get("icon")
121-
if not icon:
121+
if not icon and html:
122122
icon = find_favicon(feed_url, html)
123123
print(f"- found favicon: {icon}")
124124

0 commit comments

Comments
 (0)