This exception is only present in "recent" version of requests, typically not in the version distributed by Debian bullseye. Since requests' JSONDecodeError is in general a subclass of json.JSONDecodeError, we use the latter, but also handle the plain ValueError (which json.JSONDecodeError is a subclass of) because requests might use simplejson (which uses its own JSONDecodeError, also a subclass of ValueError). |
||
---|---|---|
.. | ||
__init__.py | ||
__main__.py | ||
cli.py | ||
cluster.py | ||
convert.py | ||
node.py | ||
types.py |