Issue #15501: Document exception classes in subprocess module.

Initial patch by Anton Barkovsky.
This commit is contained in:
Andrew Svetlov 2012-08-09 15:20:45 +03:00
parent c622f4254b
commit eec6420de4
2 changed files with 21 additions and 0 deletions

View File

@ -176,6 +176,26 @@ use cases, the underlying :class:`Popen` interface can be used directly.
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

View File

@ -52,6 +52,7 @@ Matt Bandy
Michael J. Barber
Nicolas Bareil
Chris Barker
Anton Barkovsky
Nick Barnes
Quentin Barnes
Richard Barran