Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print traceback python

import traceback
import sys

try:
    do_stuff()
except Exception:
    print(traceback.format_exc())
    # or
    print(sys.exc_info()[2])
 
PREVIOUS NEXT
Tagged: #print #traceback #python
ADD COMMENT
Topic
Name
8+1 =