Skip to content

Commit c351c35

Browse files
committed
Remove empty args from argument_list
1 parent b8bcfe0 commit c351c35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pipeline/compilers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def execute_command(self, command, cwd=None, stdout_captured=None):
112112
else:
113113
argument_list.extend(flattening_arg)
114114

115+
# Filter out empty elements in argument_list
116+
argument_list = filter(None, argument_list)
115117
stdout = None
116118
try:
117119
# We always catch stdout in a file, but we may not have a use for it.

0 commit comments

Comments
 (0)