Separated listener by introducing create listener. Working State. Message loop prevention filters added to server
This commit is contained in:
@@ -2,7 +2,7 @@ import json
|
||||
|
||||
def buildOutput(response, action, outputs):
|
||||
if hasattr(action, "outputs"):
|
||||
if response != None:
|
||||
if response is not None:
|
||||
try:
|
||||
response_data = response.json()
|
||||
except AttributeError:
|
||||
@@ -20,13 +20,13 @@ def buildOutput(response, action, outputs):
|
||||
for output_name, response_key in action.outputs.items():
|
||||
if key == response_key:
|
||||
outputs[output_name] = value
|
||||
return outputs
|
||||
|
||||
|
||||
else:
|
||||
return outputs
|
||||
print("No response received"),
|
||||
|
||||
|
||||
|
||||
#return outputs
|
||||
return outputs
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user