Archived
1
0
Fork 0

Skip RSS entries without link

Avoid crash when RSS entry does not have link.
This commit is contained in:
Michal Čihař 2018-11-26 10:20:34 +01:00 committed by GitHub
parent b39dba38ac
commit 90fb04242d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,6 +104,9 @@ async def handle_feed(session, wall, sitetitle, site):
title = sitetitle + ": " + article.title
else:
title = article.title
if not hasattr(article, 'link'):
logger.info("no link, skipping!")
continue
url = urljoin(site["url"], article.link)
exists = await wall.entries_exists(url)
if exists["exists"]: