Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print traceback from exception

import traceback

try:
    do_stuff()
except Exception as err:
    print(err, traceback.format_exc())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #print #traceback #exception
ADD COMMENT
Topic
Name
9+7 =