The encoding parameter in json.loads has been removed in py3.9
It was ignored and deprecated before. see https://docs.python.org/3/whatsnew/3.9.html#index-20:~:text=The%20encoding%20parameter%20of%20json.loads()%20has,(Contributed%20by%20Inada%20Naoki%20in%20bpo%2D39377) Change-Id: I9cf37e1297d303e459bf9588f0493f6ca4a438c7
This commit is contained in:
parent
2cd4455873
commit
f0bc436618
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue