PyDocs

Nav

Concurrent Execution

CalledProcessError

subprocess

exception (source) not Androidnot iOSnot WASI
  • CalledProcessError(returncode, cmd, output=None, stderr=None)
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
0 Examples
No examples for subprocess/CalledProcessError.
See Also
No see-alsos for subprocess/CalledProcessError
0 Notes
No notes for CalledProcessError