Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #returned #exit #status
ADD COMMENT
Topic
Name
9+8 =