Wait for process to finish before trying to check exit status.
This commit is contained in:
parent
1ea047dd94
commit
f7c93ea2e8
1 changed files with 2 additions and 2 deletions
|
@ -206,12 +206,12 @@ def execute_command(
|
||||||
return process
|
return process
|
||||||
|
|
||||||
if do_not_capture:
|
if do_not_capture:
|
||||||
exit_code = process.poll()
|
exit_code = process.wait()
|
||||||
|
|
||||||
if exit_code_indicates_error(exit_code, error_on_warnings):
|
if exit_code_indicates_error(exit_code, error_on_warnings):
|
||||||
raise subprocess.CalledProcessError(exit_code, process_command(process))
|
raise subprocess.CalledProcessError(exit_code, process_command(process))
|
||||||
|
|
||||||
return
|
return None
|
||||||
|
|
||||||
log_output(
|
log_output(
|
||||||
process,
|
process,
|
||||||
|
|
Loading…
Reference in a new issue