mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-30 05:13:01 +02:00
Wait for process to finish before trying to check exit status.
This commit is contained in:
@@ -206,12 +206,12 @@ def execute_command(
|
||||
return process
|
||||
|
||||
if do_not_capture:
|
||||
exit_code = process.poll()
|
||||
exit_code = process.wait()
|
||||
|
||||
if exit_code_indicates_error(exit_code, error_on_warnings):
|
||||
raise subprocess.CalledProcessError(exit_code, process_command(process))
|
||||
|
||||
return
|
||||
return None
|
||||
|
||||
log_output(
|
||||
process,
|
||||
|
||||
Reference in New Issue
Block a user