Skip to content

Commit f555370

Browse files
committed
Return an empty string if the variable is undefined.
1 parent 035b91f commit f555370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/faber/action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def __call__(self, targets, sources=[], **kwds):
156156
if targets:
157157
vars = self.map(targets[0].features)
158158
for v in self.vars:
159-
cmd = cmd.replace('$({})'.format(v), vars.get(v))
159+
cmd = cmd.replace('$({})'.format(v), vars.get(v) or '')
160160
status, stdout, stderr = scheduler.run(cmd)
161161
if stdout:
162162
print(stdout)

0 commit comments

Comments
 (0)