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:
Eyal 2020-11-05 16:29:37 +02:00 committed by Renat Akhmerov
parent 2cd4455873
commit f0bc436618
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