Commit c0bb82a4 authored by Frédéric Escudié's avatar Frédéric Escudié
Browse files

Fix bug with input list empty in get_outputs.

parent ae7c90db
......@@ -83,7 +83,10 @@ class Component(object):
if isinstance(output_list, str):
ilist = []
if not input_list or not '{' in str(output_list):
return [output_list]
if input_list is not None and len(input_list) == 0:
return []
else:
return [output_list]
# if multiple list of inputs is used
elif isinstance(input_list[0], list):
for i, val in enumerate(input_list[0]):
......
Supports Markdown
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