diff --git a/pyzabbix/api.py b/pyzabbix/api.py index 16e7176..fe12e69 100644 --- a/pyzabbix/api.py +++ b/pyzabbix/api.py @@ -6,7 +6,6 @@ from packaging.version import Version from requests import Session -from requests.exceptions import JSONDecodeError __all__ = [ "ZabbixAPI", @@ -218,7 +217,7 @@ def do_request( try: response = resp.json() - except JSONDecodeError as exception: + except ValueError as exception: raise ZabbixAPIException( f"Unable to parse json: {resp.text}" ) from exception