subprocess.CalledProcessError

exception subprocess.CalledProcessError(returncode, cmd, output=None)[source]

This exception is raised when a process run by check_call() or check_output() returns a non-zero exit status. The exit status will be stored in the returncode attribute; check_output() will also store the output in the output attribute.