From e4269a8d5d186ae1781d5608be3b514a4763cee6 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 7 May 2018 18:33:44 +0200 Subject: [PATCH] Skip RSS items if published_parsed is not defined --- platypush/backend/http/request/rss/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platypush/backend/http/request/rss/__init__.py b/platypush/backend/http/request/rss/__init__.py index a6bcdf11..684b720a 100644 --- a/platypush/backend/http/request/rss/__init__.py +++ b/platypush/backend/http/request/rss/__init__.py @@ -108,6 +108,9 @@ class RssUpdates(HttpRequest): .format(len(feed.entries), self.url)) for entry in feed.entries: + if not entry.published_parsed: + continue + entry_timestamp = datetime.datetime(*entry.published_parsed[:6]) if latest_update is None \