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 invalid JSON, raise more informative exception msg #97

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

pederhan
Copy link
Member

Only accept string response if calling _get() with text=True. Avoids validation errors from trying to parse a response that cannot be validated as JSON.

@pederhan pederhan merged commit bbf7f62 into unioslo:main Nov 25, 2024
5 checks passed
@pederhan pederhan deleted the handle-invalid-json branch November 25, 2024 15:51
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.

1 participant