summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-04-30 21:51:45 (GMT)
committerGitHub <noreply@github.com>2022-04-30 21:51:45 (GMT)
commit335aae195093d89d11f4379d36c663233abead61 (patch)
tree87075b3c8f85af8ad20785bb25e19acee3b4b850
parentcfcda0acf27e40eab38c1c7c542362d872f6b403 (diff)
downloadcpython-335aae195093d89d11f4379d36c663233abead61.zip
cpython-335aae195093d89d11f4379d36c663233abead61.tar.gz
cpython-335aae195093d89d11f4379d36c663233abead61.tar.bz2
gh-87801: Add run() to subprocess.CalledProcessError description (GH-91628)
(cherry picked from commit 567be058b403db9689af45bf831d4c732c8b1105) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
-rw-r--r--Doc/library/subprocess.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index ab9f1d8..4d33120 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -214,7 +214,9 @@ compatibility with older versions, see the :ref:`call-function-trio` section.
.. exception:: CalledProcessError
Subclass of :exc:`SubprocessError`, raised when a process run by
- :func:`check_call` or :func:`check_output` returns a non-zero exit status.
+ :func:`check_call`, :func:`check_output`, or :func:`run` (with ``check=True``)
+ returns a non-zero exit status.
+
.. attribute:: returncode