check-patroni/check_patroni
Denis Laxalde 6ee8db1df2 Avoid using requests's JSONDecodeError
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).
2023-10-13 11:45:39 +02:00
..
__init__.py Release 1.0.0 2023-08-28 12:09:16 +02:00
__main__.py Initial commit 2021-07-02 12:37:03 +02:00
cli.py Fix some typos spotted by codespell 2.2.6 2023-10-03 09:53:53 +02:00
cluster.py Drop superfluous type annotation of 'self' 2023-10-03 09:39:40 +02:00
convert.py Use isort to automatically sort imports 2023-03-20 14:56:11 +01:00
node.py Drop superfluous type annotation of 'self' 2023-10-03 09:39:40 +02:00
types.py Avoid using requests's JSONDecodeError 2023-10-13 11:45:39 +02:00