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

Skip invalid entries from nonexistent id_list IDs #81

Merged
merged 5 commits into from
Aug 18, 2021

Conversation

lukasschwab
Copy link
Owner

@lukasschwab lukasschwab commented Aug 16, 2021

Description

  • When an entry in an arXiv API feed is missing its ID (a very required field),
    1. Throw an error (_from_feed_entry)
    2. Catch that error in the generator, warn, and proceed to the next entry without yielding
  • Adds a test with known-buggy queries.
  • Increments version for a patch release.

Considered some drawbacks to this new behavior, but breaking the ordinal relationship seems better than introducing a new zero- or invalid-state (like the bozo flag in feedparser): #80 (comment)

Breaking changes

List any changes that break the API usage supported on master.

None; elides an unexpected and unhandled error.

Relevant issues

List GitHub issues relevant to this change.

Fix #80.

Checklist

  • (If appropriate) README.md example usage has been updated.
  • Raise this bug with the arXiv API Google Group.

@lukasschwab lukasschwab force-pushed the fix-80-skip-results-without-id branch from a5b593f to 649f9de Compare August 18, 2021 05:32
@lukasschwab lukasschwab merged commit cebbca8 into master Aug 18, 2021
@lukasschwab lukasschwab deleted the fix-80-skip-results-without-id branch August 18, 2021 06:16
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

Successfully merging this pull request may close these issues.

AttributeError: nonexistent IDs in id_lists yield invalid entries
1 participant