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

Better DOI term snippet, 3.7+ testing docs #29

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Better DOI term snippet, 3.7+ testing docs #29

merged 2 commits into from
Nov 2, 2023

Conversation

jamesbraza
Copy link
Contributor

  • Better DOI searching snippet
    • Improves docstring present
    • Adds try-except block
  • Documents 3.7+ is tested

@jamesbraza
Copy link
Contributor Author

Test failures appear to be unrelated to this README change

README.md Outdated
Comment on lines 286 to 291
try:
print(result.data['esearchresult']['idlist'])
except KeyError as exc:
raise ValueError(
f"Unexpected response data blob {result.data}."
) from exc
Copy link
Owner

@krassowski krassowski Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would skip error handling from the examples in the readme. They are meant to be illustrative, not comprehensive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, thanks! Will implement that shortly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, done!

Copy link
Owner

@krassowski krassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@krassowski krassowski merged commit 5bc4891 into krassowski:main Nov 2, 2023
19 checks passed
@jamesbraza jamesbraza deleted the better-doi-checks branch November 2, 2023 15:22
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.

2 participants