Skip to content

Commit 98a5720

Browse files
committed
take into account that path to file with command output may be None in cmd_trace_msg
1 parent 121e199 commit 98a5720

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

easybuild/tools/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ def cmd_trace_msg(cmd, start_time, work_dir, stdin, cmd_out_fp, cmd_err_fp):
348348
]
349349
if stdin:
350350
lines.append(f"\t[input: {stdin}]")
351-
lines.append(f"\t[output saved to {cmd_out_fp}]")
351+
if cmd_out_fp:
352+
lines.append(f"\t[output saved to {cmd_out_fp}]")
352353
if cmd_err_fp:
353354
lines.append(f"\t[errors/warnings saved to {cmd_err_fp}]")
354355

0 commit comments

Comments
 (0)