]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-87801: Add run() to subprocess.CalledProcessError description (GH-91628)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 30 Apr 2022 21:54:58 +0000 (14:54 -0700)
committerGitHub <noreply@github.com>
Sat, 30 Apr 2022 21:54:58 +0000 (14:54 -0700)
(cherry picked from commit 567be058b403db9689af45bf831d4c732c8b1105)

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

index f9e9f63f2151e6a3065e5c9fb4684c0bcaf9ec9a..45eff7ffcc3502c62c0d254b0cfbc80da7489876 100644 (file)
@@ -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