Staging: this is not the live site, pydocs.org.
Raised when run() is called with check=True and the process
returns a non-zero exit status.
Attributes:
cmd, returncode, stdout, stderr, output
Changed in 3.5
- 3.5: stdout and stderr attributes added
Members of CalledProcessError
c
- cmd
- Command that was used to spawn the child process.
o
- output
- Output of the child process if it was captured by run() or check_output().
r
- returncode
- Exit status of the child process, an integer.
s
- stderr
- Stderr output of the child process if it was captured by run().
- stdout
- Alias for output attribute, to match stderr