Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tolerant mode for feeds with no link elements #442

Closed
dmoklaf opened this issue Apr 29, 2024 · 1 comment
Closed

Tolerant mode for feeds with no link elements #442

dmoklaf opened this issue Apr 29, 2024 · 1 comment

Comments

@dmoklaf
Copy link

dmoklaf commented Apr 29, 2024

The Amazon Science feed has sometimes entries with no link element:
https://www.amazon.science/index.rss

<item>
      <title>Amazon panel discusses fairness in AI</title>
      <description>Watch the recorded panel discussion that aired the week of NeurIPS 2020.</description>
      <pubDate>Wed, 25 Nov 2020 18:07:19 GMT</pubDate>
</item>

which triggers, logically, an exception in feedparser:
AttributeError: object has no attribute 'link'

A tolerant mode for feedparser would greatly help, skipping these bad entries entirely, or tolerating entries with no link, depending on what disrupts the less the feedparser code (the only functional need is to be able to return the other valid entries).

@dmoklaf
Copy link
Author

dmoklaf commented Apr 30, 2024

Wrong ticket. The issue was coming from my own downstream code. Sorry for the noise.

@dmoklaf dmoklaf closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant