[Python-checkins] bpo-24888: Clarify subprocess.check_call propagates exceptions if unable to start process (GH-28018)

miss-islington webhook-mailer at python.org
Tue Sep 7 14:44:26 EDT 2021


https://github.com/python/cpython/commit/31be544721670516fa9700e088c022ff38b0c5fe
commit: 31be544721670516fa9700e088c022ff38b0c5fe
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-09-07T11:44:16-07:00
summary:

bpo-24888: Clarify subprocess.check_call propagates exceptions if unable to start process (GH-28018)

(cherry picked from commit 19a304ba990481f0381a5316096b6b3cf2dff381)

Co-authored-by: DonnaDia <37962843+DonnaDia at users.noreply.github.com>

files:
M Doc/library/subprocess.rst

diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index af5463364c44b..21a96a4bd5ff5 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -1149,6 +1149,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::
 



More information about the Python-checkins mailing list