Commit 8fa5cbea authored by 张允禹's avatar 张允禹

add encode

parent 0d096d1b
__author__ = 'alex jiang' __author__ = 'alex jiang'
__version__ = '2.3.3' __version__ = '2.3.4'
...@@ -241,10 +241,11 @@ class AcsClient: ...@@ -241,10 +241,11 @@ class AcsClient:
status, headers, body = self._implementation_of_do_action(acs_request) status, headers, body = self._implementation_of_do_action(acs_request)
request_id = None request_id = None
body = body.encode()
ret = body ret = body
try: try:
body_obj = json.loads(body.decode()) body_obj = json.loads(body)
request_id = body_obj.get('RequestId') request_id = body_obj.get('RequestId')
ret = body_obj ret = body_obj
except ValueError: except ValueError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment