File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1242,11 +1242,11 @@ def _list_outputs(self):
12421242 if self .inputs .sort_filelist :
12431243 outfiles = human_order_sorted (outfiles )
12441244 outputs [key ].append (list_to_filename (outfiles ))
1245- if self .inputs .raise_on_empty : # if the raise_on_empty is True by default, make sure no None in outputs
1245+ if self .inputs .drop_blank_outputs :
1246+ outputs [key ] = [x for x in outputs [key ] if x is not None ]
1247+ else :
12461248 if any ([val is None for val in outputs [key ]]):
12471249 outputs [key ] = []
1248- else : # if the raise_on_empty is False remove the Nones in outputs
1249- outputs [key ] = [[] if x is None else x for x in outputs [key ]]
12501250 if len (outputs [key ]) == 0 :
12511251 outputs [key ] = None
12521252 elif len (outputs [key ]) == 1 :
You can’t perform that action at this time.
0 commit comments