Merge "The encoding parameter in json.loads has been removed in py3.9"

This commit is contained in:
Zuul 2020-11-17 05:53:29 +00:00 committed by Gerrit Code Review
commit d1adb3ff0d
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ class HTTPAction(actions.Action):
# Represent important resp data as a dictionary.
try:
content = resp.json(encoding=resp.encoding)
content = resp.json()
except Exception:
LOG.debug("HTTP action response is not json.")
content = resp.content