diff options
| author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-08-09 12:23:49 (GMT) |
|---|---|---|
| committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-08-09 12:23:49 (GMT) |
| commit | 8afcec41f46b643d30a60f0da9c7bc99498c5202 (patch) | |
| tree | c6426814f22da25eb6095c0c7f09a06637d2385b | |
| parent | 359b5032f64588c09723eef7a600ceb8462e658e (diff) | |
| download | cpython-8afcec41f46b643d30a60f0da9c7bc99498c5202.zip cpython-8afcec41f46b643d30a60f0da9c7bc99498c5202.tar.gz cpython-8afcec41f46b643d30a60f0da9c7bc99498c5202.tar.bz2 | |
Issue #15501: Document exception classes in subprocess module.
Initial patch by Anton Barkovsky.
| -rw-r--r-- | Doc/library/subprocess.rst | 20 | ||||
| -rw-r--r-- | Misc/ACKS | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 3aae137..1f73159 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -172,6 +172,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 @@ -44,6 +44,7 @@ Jeff Balogh Matt Bandy Michael J. Barber Chris Barker +Anton Barkovsky Nick Barnes Quentin Barnes Richard Barran |
