Fix inconsistent exception for JSONDecode error (#6097)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
When calling .json() it was possible to raise a requests.exceptions.JSONDecodeError or ValueError depending on whether the encoding is set.
authored by Nate Prewitt · committed by GitHub · parent 8bce583 · Browse files · 2 files+26 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+26 added−0 removed
- tests:+24 added−0 removed
- other:+2 added−0 removed