Python traceback

snippet.python
import traceback
 
try:
    ...
except Exception, e:    
    traceback.print_exc()

관련 문서