Skip to content

Commit 567be05

Browse files
authored
gh-87801: Add run() to subprocess.CalledProcessError description (#91628)
1 parent d7eb1ff commit 567be05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/subprocess.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ compatibility with older versions, see the :ref:`call-function-trio` section.
214214
.. exception:: CalledProcessError
215215

216216
Subclass of :exc:`SubprocessError`, raised when a process run by
217-
:func:`check_call` or :func:`check_output` returns a non-zero exit status.
217+
:func:`check_call`, :func:`check_output`, or :func:`run` (with ``check=True``)
218+
returns a non-zero exit status.
219+
218220

219221
.. attribute:: returncode
220222

0 commit comments

Comments
 (0)