maubot / rss

A RSS plugin for maubot
GNU Affero General Public License v3.0
68 stars 21 forks source link

AttributeError: object has no attribute 'id' #16

Closed hasanbarary closed 4 years ago

hasanbarary commented 4 years ago

Error while polling feeds 23:17:26 ERROR instance.rss Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/feedparser.py", line 398, in getattr return self.getitem(key) File "/usr/lib/python3.8/site-packages/feedparser.py", line 356, in getitem return dict.getitem(self, key) KeyError: 'id'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/data/plugins/xyz.maubot.rss-v0.1.0.mbp/rss/bot.py", line 111, in _poll_feeds await self._poll_once() File "/data/plugins/xyz.maubot.rss-v0.1.0.mbp/rss/bot.py", line 100, in _poll_once new_entries = {entry.id: entry for entry in self.find_entries(feed.id, entries)} File "/data/plugins/xyz.maubot.rss-v0.1.0.mbp/rss/bot.py", line 147, in find_entries return [Entry( File "/data/plugins/xyz.maubot.rss-v0.1.0.mbp/rss/bot.py", line 149, in id=entry.id, File "/usr/lib/python3.8/site-packages/feedparser.py", line 400, in getattr raise AttributeError("object has no attribute '%s'" % key) AttributeError: object has no attribute 'id'

tulir commented 4 years ago

Already fixed, use the master branch (e.g. from the CI)