Archived
1
0
Fork 0

Merge pull request #41 from nijel/patch-2

Skip RSS entries without link
This commit is contained in:
Lukas Winkler 2018-11-26 10:46:12 +01:00 committed by GitHub
commit b196f8b56f
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"]: