Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print error traceback

import traceback

try:
    raise TypeError("Oups!")
except Exception, err:
    try:
        raise TypeError("Again !?!")
    except:
        pass

    traceback.print_exc()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #print #error #traceback
ADD COMMENT
Topic
Name
2+4 =