Skip to content

Commit 2363910

Browse files
bpo-24888: Clarify subprocess.check_call propagates exceptions if unable to start process (GH-28018) (GH-28223)
(cherry picked from commit 19a304b) Co-authored-by: DonnaDia <[email protected]>
1 parent 5a7a354 commit 2363910

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/subprocess.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,8 @@ calls these functions.
11251125
code was zero then return, otherwise raise :exc:`CalledProcessError`. The
11261126
:exc:`CalledProcessError` object will have the return code in the
11271127
:attr:`~CalledProcessError.returncode` attribute.
1128+
If :func:`check_call` was unable to start the process it will propagate the exception
1129+
that was raised.
11281130

11291131
Code needing to capture stdout or stderr should use :func:`run` instead::
11301132

0 commit comments

Comments
 (0)