From 7a0e39111d4af4f9041d0b2159a0412b154cf99a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 6 May 2022 14:38:17 +0200 Subject: [PATCH] FIX: A feed entry may not necessarily have an `id` attribute --- platypush/plugins/rss/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/rss/__init__.py b/platypush/plugins/rss/__init__.py index dad6b147b..6a64ec394 100644 --- a/platypush/plugins/rss/__init__.py +++ b/platypush/plugins/rss/__init__.py @@ -102,7 +102,7 @@ class RssPlugin(RunnablePlugin): { 'feed_url': url, 'feed_title': getattr(feed.feed, 'title', None), - 'id': entry.id, + 'id': getattr(entry, 'id', None), 'url': entry.link, 'published': datetime.datetime.fromtimestamp(time.mktime(entry.published_parsed)), 'title': entry.title,