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

Handle "Add to staff picks" errors #8849

Merged
merged 3 commits into from
Mar 15, 2024

Conversation

jimchamp
Copy link
Collaborator

Closes #8473

Wraps create_ol_subjects_for_ocaid call in a try/except block. If any edition is not added to the staff picks, an error message for that edition will be included in the handler's json response.

Technical

Testing

Screenshot

Stakeholders

@jimchamp jimchamp force-pushed the 8473/bug/staff-picks branch from b5d1aec to 460053f Compare February 28, 2024 16:25
@mekarpeles mekarpeles merged commit 983dafe into internetarchive:master Mar 15, 2024
3 checks passed
rebecca-shoptaw pushed a commit to rebecca-shoptaw/openlibrary that referenced this pull request Mar 19, 2024
* Handle "Add to staff picks" errors, avoid catching blind `Exception`

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Achorn pushed a commit to Achorn/openlibrary that referenced this pull request Mar 19, 2024
* Handle "Add to staff picks" errors, avoid catching blind `Exception`

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
rebecca-shoptaw pushed a commit to rebecca-shoptaw/openlibrary that referenced this pull request Mar 19, 2024
* Handle "Add to staff picks" errors, avoid catching blind `Exception`

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
merwhite11 pushed a commit to merwhite11/openlibrary that referenced this pull request Mar 27, 2024
* Handle "Add to staff picks" errors, avoid catching blind `Exception`

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@jimchamp jimchamp deleted the 8473/bug/staff-picks branch April 24, 2024 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add to staff picks fails if any dark item associated with Work ID
2 participants