mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-10 01:52:25 +03:00
response data bug fix
This commit is contained in:
parent
93ff867404
commit
5ad27dd929
1 changed files with 10 additions and 2 deletions
|
@ -34,7 +34,10 @@ class Messaging(object):
|
|||
data['taskId'] = response.get_id()
|
||||
data['responseCode'] = response.get_code()
|
||||
data['responseMessage'] = response.get_message()
|
||||
data['responseData'] = json.loads(str(response.get_data()))
|
||||
response_data = None
|
||||
if data['responseData'] is not None:
|
||||
response_data = json.loads(str(response.get_data()))
|
||||
data['responseData'] = response_data
|
||||
data['contentType'] = response.get_content_type()
|
||||
data['timestamp'] = response.get_timestamp()
|
||||
|
||||
|
@ -49,7 +52,12 @@ class Messaging(object):
|
|||
data['commandExecutionId'] = response.get_execution_id()
|
||||
data['responseCode'] = response.get_code()
|
||||
data['responseMessage'] = response.get_message()
|
||||
data['responseData'] = response.get_data()
|
||||
|
||||
response_data = None
|
||||
if data['responseData'] is not None:
|
||||
response_data = json.loads(str(response.get_data()))
|
||||
|
||||
data['responseData'] = response_data
|
||||
data['contentType'] = response.get_content_type()
|
||||
data['timestamp'] = response.get_timestamp()
|
||||
|
||||
|
|
Loading…
Reference in a new issue