Skip to content

requests returns a different exception type on JSON errors

Compare
Choose a tag to compare
@jofegan jofegan released this 03 Mar 14:53
· 139 commits to master since this release

Important bugfix to handling of text responses on Python 3.

The exception type that is returned for JSON parse errors was incorrect
in our code because the requests module uses the simplejson module
for parsing and we assumed the regular json module.