Friday, 28 September 2018

subprocess.check_output(): show output on failure

The output of subprocess.check_output() looks like this at the moment:

CalledProcessError: Command '['foo', ...]' returned non-zero exit status 1

Is there a way to get a better error message?

I want to see stdout and stderr.



from subprocess.check_output(): show output on failure

No comments:

Post a Comment