/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import sys, traceback, string def myExceptHook(type, value, tb): sys.__excepthook__(type, value, tb) lines = traceback.format_exception(type, value, tb) print string.join(lines) sys.excepthook = myExceptHook