Agent: Use response.json() in ControlChannel
This commit is contained in:
parent
282b8bbed2
commit
45884ff233
|
@ -84,9 +84,7 @@ class ControlChannel(IControlChannel):
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
|
||||||
return [
|
return [Credentials.from_mapping(credentials) for credentials in response.json()]
|
||||||
Credentials.from_mapping(credentials) for credentials in json.loads(response.text)
|
|
||||||
]
|
|
||||||
except (
|
except (
|
||||||
requests.exceptions.JSONDecodeError,
|
requests.exceptions.JSONDecodeError,
|
||||||
requests.exceptions.ConnectionError,
|
requests.exceptions.ConnectionError,
|
||||||
|
|
Loading…
Reference in New Issue