forked from p15670423/monkey
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()
|
||||
|
||||
return [
|
||||
Credentials.from_mapping(credentials) for credentials in json.loads(response.text)
|
||||
]
|
||||
return [Credentials.from_mapping(credentials) for credentials in response.json()]
|
||||
except (
|
||||
requests.exceptions.JSONDecodeError,
|
||||
requests.exceptions.ConnectionError,
|
||||
|
|
Loading…
Reference in New Issue