Fix bug when parsing startpage

This commit is contained in:
ibu 2021-12-25 11:23:37 +00:00
parent 2f3e1d368e
commit 08ca7fee56
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ async def parse_startpage(
# feeds
feeds = meta_links['feeds']
if 'wordpress' in meta.get('generator', '').lower():
if 'wordpress' in (meta.get('generator') or '').lower():
url = durl.site() + 'feed/'
feeds[url] = 'application/rss+xml'
# TODO later: maybe also probe other possible feed paths 'rss', 'rss/'