-
Notifications
You must be signed in to change notification settings - Fork 122
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
AttributeError: nonexistent IDs in id_list
s yield invalid entries
#80
Comments
A design problem: the feeds for Returning Skipping the partial entries breaks the ordinal relationship. There's a work-around: you can still check existence by looking up in the aggregate results. Since this usage (testing ID existence) seems less likely, I'm inclined to require some dependents to do the latter rather than requiring all projects to do the former. If this use case turns out to be common, we can parameterize an invalid-entry handler in the |
id_list
results include an invalid entryid_list
s yield invalid entries
Another risk with skipping partial results: doing so may confuse a dependent's length-checking pagination logic. |
Final consideration:
No dependent of this package relies on the ordinal relationship, because any request that would be impacted by this change currently fails. Skipping the results is the least disruptive option. |
Description
When a specified ID doesn't correspond to an arXiv paper, the results feed includes an
entry
element missing expected fields (id
).The status is 200, but
feedparser
chokes and the error-handling in this package tries to access the nonexistent ID, yielding a rawAttributeError
Steps to reproduce
Example API feed: http://export.arxiv.org/api/query?id_list=2208.05394
Expected behavior
This package's error handling should return a neatly handleable error.
Versions
python
version: 3.7.9arxiv.py
version: 1.4.1The text was updated successfully, but these errors were encountered: