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

Not found returned as valid data #169

Merged
merged 2 commits into from
Feb 28, 2022
Merged

Not found returned as valid data #169

merged 2 commits into from
Feb 28, 2022

Conversation

LocoDelAssembly
Copy link
Contributor

When using Serrano.content_negotiation(ids: ["doi:10.5281/zenodo.4406210"], format: "citeproc-json") it returns Resource not found as response which is not valid JSON.

This small pull request fixes the problem by returning nil if the response was not successful. I also added console task to facilitate testing the gem inside irb.

@sckott sckott added this to the v1.1 milestone Feb 28, 2022
@sckott
Copy link
Owner

sckott commented Feb 28, 2022

Thanks - LGTM

@sckott sckott merged commit 4f788ba into sckott:main Feb 28, 2022
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