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):
1242
1242
if self .inputs .sort_filelist :
1243
1243
outfiles = human_order_sorted (outfiles )
1244
1244
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 :
1246
1248
if any ([val is None for val in outputs [key ]]):
1247
1249
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 ]]
1250
1250
if len (outputs [key ]) == 0 :
1251
1251
outputs [key ] = None
1252
1252
elif len (outputs [key ]) == 1 :
You can’t perform that action at this time.
0 commit comments