]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-24888: Clarify subprocess.check_call propagates exceptions if unable to start...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Sep 2021 18:43:42 +0000 (11:43 -0700)
committerGitHub <noreply@github.com>
Tue, 7 Sep 2021 18:43:42 +0000 (20:43 +0200)
(cherry picked from commit 19a304ba990481f0381a5316096b6b3cf2dff381)

Co-authored-by: DonnaDia <37962843+DonnaDia@users.noreply.github.com>
Doc/library/subprocess.rst

index 57a3285f8f4d87e53b5d3b0a321e01683f9ec9fc..55dcc172bbc2830fccb5d2527ddca738f7de1a1e 100644 (file)
@@ -1125,6 +1125,8 @@ calls these functions.
    code was zero then return, otherwise raise :exc:`CalledProcessError`. The
    :exc:`CalledProcessError` object will have the return code in the
    :attr:`~CalledProcessError.returncode` attribute.
+   If :func:`check_call` was unable to start the process it will propagate the exception
+   that was raised.
 
    Code needing to capture stdout or stderr should use :func:`run` instead::