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

Skip empty body decode/encode in normalize_json_body #517

Merged
merged 1 commit into from Feb 3, 2022

Conversation

glensc
Copy link
Contributor

@glensc glensc commented Feb 3, 2022

There's no point to decode/encode empty input. It will always fail and original be returned

See #494 (comment)

@glensc
Copy link
Contributor Author

glensc commented Feb 3, 2022

Here's another output where the exception is completely bogus:

Having this logged, even at debug level creates only confusion

There's no point to decode/encode empty input.
It will always fail and original be returned.
@JWCook JWCook added this to the v0.10 milestone Feb 3, 2022
@JWCook JWCook merged commit aafc42f into requests-cache:master Feb 3, 2022
@glensc glensc deleted the patch-1 branch February 3, 2022 18:33
@JWCook JWCook modified the milestones: v0.10, v1.0 Apr 15, 2022
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.

None yet

2 participants