diff -r db1b4aab53eb Doc/library/subprocess.rst --- a/Doc/library/subprocess.rst Tue Aug 07 11:57:47 2012 -0700 +++ b/Doc/library/subprocess.rst Thu Aug 09 14:23:53 2012 +0300 @@ -172,6 +172,26 @@ output. +.. exception:: CalledProcessError + + Exception raised when a process run by check_call() or + 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