Skip to content

0.4.1 KeyError: 'links' #54

@c-schmitz

Description

@c-schmitz

Upgraded to latest version 0.4.1 and getting this error for new items showing up in the feed:

Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/feedparser/util.py", line 156, in getattr
return self.getitem(key)
File "/usr/local/lib/python3.10/dist-packages/feedparser/util.py", line 113, in getitem
return dict.getitem(self, key)
KeyError: 'links'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/feediverse", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/feediverse.py", line 59, in main
for entry in get_feed(feed['url'], config['updated']):
File "/usr/local/lib/python3.10/dist-packages/feediverse.py", line 114, in get_feed
yield get_entry(entry)
File "/usr/local/lib/python3.10/dist-packages/feediverse.py", line 135, in get_entry
'links': entry.links,
File "/usr/local/lib/python3.10/dist-packages/feedparser/util.py", line 158, in getattr
raise AttributeError("object has no attribute '%s'" % key)
AttributeError: object has no attribute 'links'

The feed itself validates without errors:

https://www.rssboard.org/rss-validator/check.cgi?url=https%3A//comfortupdate.limesurvey.org/%3Fr%3Drss

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions