mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #15501: Document exception classes in subprocess module.
Initial patch by Anton Barkovsky.
This commit is contained in:
parent
359b5032f6
commit
8afcec41f4
2 changed files with 21 additions and 0 deletions
|
@ -172,6 +172,26 @@ use cases, the underlying :class:`Popen` interface can be used directly.
|
||||||
output.
|
output.
|
||||||
|
|
||||||
|
|
||||||
|
.. exception:: CalledProcessError
|
||||||
|
|
||||||
|
Exception raised when a process run by :func:`check_call` or
|
||||||
|
:func:`check_output` returns a non-zero exit status.
|
||||||
|
|
||||||
|
.. attribute:: returncode
|
||||||
|
|
||||||
|
Exit status of the child process.
|
||||||
|
|
||||||
|
.. attribute:: cmd
|
||||||
|
|
||||||
|
Command that was used to spawn the child process.
|
||||||
|
|
||||||
|
.. attribute:: output
|
||||||
|
|
||||||
|
Output of the child process if this exception is raised by
|
||||||
|
:func:`check_output`. Otherwise, ``None``.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.. _frequently-used-arguments:
|
.. _frequently-used-arguments:
|
||||||
|
|
||||||
Frequently Used Arguments
|
Frequently Used Arguments
|
||||||
|
|
|
@ -44,6 +44,7 @@ Jeff Balogh
|
||||||
Matt Bandy
|
Matt Bandy
|
||||||
Michael J. Barber
|
Michael J. Barber
|
||||||
Chris Barker
|
Chris Barker
|
||||||
|
Anton Barkovsky
|
||||||
Nick Barnes
|
Nick Barnes
|
||||||
Quentin Barnes
|
Quentin Barnes
|
||||||
Richard Barran
|
Richard Barran
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue