Skip RSS items if published_parsed is not defined

This commit is contained in:
Fabio Manganiello 2018-05-07 18:33:44 +02:00
parent f322f71447
commit e4269a8d5d

View file

@ -108,6 +108,9 @@ class RssUpdates(HttpRequest):
.format(len(feed.entries), self.url)) .format(len(feed.entries), self.url))
for entry in feed.entries: for entry in feed.entries:
if not entry.published_parsed:
continue
entry_timestamp = datetime.datetime(*entry.published_parsed[:6]) entry_timestamp = datetime.datetime(*entry.published_parsed[:6])
if latest_update is None \ if latest_update is None \