Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python subprocess exception handling

try:
    subprocess.check_output(...)
except subprocess.CalledProcessError as e:
    print(e.output)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #subprocess #exception #handling
ADD COMMENT
Topic
Name
1+1 =