pylorax: proc.returncode can be None
So use %s to keep it from generating a Traceback. If a callback is used and it exits before the process does the returncode can be None.
This commit is contained in:
parent
4699c88109
commit
4fea0ba7f1
@ -194,7 +194,7 @@ def _run_program(argv, root='/', stdin=None, stdout=None, env_prune=None, log_ou
|
||||
raise
|
||||
|
||||
with program_log_lock:
|
||||
program_log.debug("Return code: %d", proc.returncode)
|
||||
program_log.debug("Return code: %s", proc.returncode)
|
||||
|
||||
if proc.returncode and raise_err:
|
||||
output = (output_string or "") + (err_string or "")
|
||||
|
Loading…
Reference in New Issue
Block a user