Merge branch 'v2-1' into key-equals-empty

This commit is contained in:
Markus Opolka
2020-07-03 09:03:21 +02:00
committed by GitHub

View File

@@ -612,7 +612,7 @@ def main(cliargs):
except HTTPError as e:
# Try to recover from HTTP Error, if there is JSON in the response
if e.info().get_content_subtype() == "json":
if "json" in e.info().get_content_subtype():
json_data = e.read()
else:
nagios.append_unknown(" HTTPError[%s], url:%s" % (str(e.code), url))