Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
workflow
pypushflow
Commits
a014fcca
Commit
a014fcca
authored
Aug 03, 2020
by
payno
Browse files
[PythonActor] manage the case inData is None
parent
6e9d6766
Changes
1
Hide whitespace changes
Inline
Side-by-side
pypushflow/PythonActor.py
View file @
a014fcca
...
...
@@ -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
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment