summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorDonnaDia <37962843+DonnaDia@users.noreply.github.com>2021-09-07 18:16:44 (GMT)
committerGitHub <noreply@github.com>2021-09-07 18:16:44 (GMT)
commit19a304ba990481f0381a5316096b6b3cf2dff381 (patch)
tree8dfd8f31a6f2c4eb286d3f5c651754bca149072e /Doc/library
parent34d82ce7cb82a8f5e2e83417d66d9aa319f3bb69 (diff)
downloadcpython-19a304ba990481f0381a5316096b6b3cf2dff381.zip
cpython-19a304ba990481f0381a5316096b6b3cf2dff381.tar.gz
cpython-19a304ba990481f0381a5316096b6b3cf2dff381.tar.bz2
bpo-24888: Clarify subprocess.check_call propagates exceptions if unable to start process (GH-28018)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/subprocess.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index af54633..21a96a4 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::