Commit 6dc110a2 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

fix a bug with 2 executions

parent 9b8be315
......@@ -183,6 +183,9 @@ class Workflow(threading.Thread):
# add the component
self.components.append(cmpt_object)
elif not self.component_nameids_is_init and not self.dynamic_component_present:
if self._component_is_duplicated(cmpt_object):
raise ValueError("Component " + cmpt_object.__class__.__name__ + " with prefix " +
cmpt_object.prefix + " already exist in this pipeline!")
self.components.append(cmpt_object)
else:
if self._component_is_duplicated(cmpt_object):
......
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