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

ambv webhook-mailer at python.org
Tue Sep 7 14:43:52 EDT 2021


https://github.com/python/cpython/commit/2363910662cda4dcf574da68b4633b55e5fc0f9c
commit: 2363910662cda4dcf574da68b4633b55e5fc0f9c
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-09-07T20:43:42+02:00
summary:

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

(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 57a3285f8f4d87..55dcc172bbc283 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -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::
 



More information about the Python-checkins mailing list