Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19a304b

Browse files
authored
bpo-24888: Clarify subprocess.check_call propagates exceptions if unable to start process (GH-28018)
1 parent 34d82ce commit 19a304b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/subprocess.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,8 @@ calls these functions.
11491149
code was zero then return, otherwise raise :exc:`CalledProcessError`. The
11501150
:exc:`CalledProcessError` object will have the return code in the
11511151
:attr:`~CalledProcessError.returncode` attribute.
1152+
If :func:`check_call` was unable to start the process it will propagate the exception
1153+
that was raised.
11521154

11531155
Code needing to capture stdout or stderr should use :func:`run` instead::
11541156

0 commit comments

Comments
 (0)