Commit a014fcca authored by payno's avatar payno
Browse files

[PythonActor] manage the case inData is None

parent 6e9d6766
......@@ -281,12 +281,13 @@ class PythonActor(AbstractActor):
self.error_handler.triggerOnError(inData=(None, oldInData))
else:
out_data = {}
for key, value in inData.items():
if key in self.in_data:
if self.in_data[key] != value:
if inData is not None:
for key, value in inData.items():
if key in self.in_data:
if self.in_data[key] != value:
out_data[key] = value
else:
out_data[key] = value
else:
out_data[key] = value
for downStreamActor in self.listDownStreamActor:
downStreamActor.trigger((output_channel, inData))
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