Answers for "python returned non-zero exit status 1."

0

python returned non-zero exit status 1.

import subprocess
try:
    subprocess.check_output("dir /f",shell=True,stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
    raise RuntimeError("command '{}' return with error (code {}): {}".format(e.cmd, e.returncode, e.output))
Posted by: Guest on May-22-2021

Code answers related to "python returned non-zero exit status 1."

Python Answers by Framework

Browse Popular Code Answers by Language