Changeset - 41830567a8d0
[Not reviewed]
default
0 1 0
Drew Perttula - 18 years ago 2007-03-18 23:46:03
drewp@bigasterisk.com
bigger traceback printouts for all tools
1 file changed with 12 insertions and 0 deletions:
0 comments (0 inline, 0 general)
bin/run_local.py
Show inline comments
 
@@ -5,4 +5,16 @@
 
import sys,os
 
sys.path.insert(0,os.path.join(os.path.dirname(sys.argv[0]),".."))
 

	
 
import cgitb
 
from twisted.python.failure import Failure
 

	
 
import Tkinter
 
def rce(self, exc, val, tb):
 
    sys.stderr.write("Exception in Tkinter callback\n")
 
    if True:
 
        sys.excepthook(exc, val, tb)
 
    else:
 
        Failure(val, exc, tb).printDetailedTraceback()
 
Tkinter.Tk.report_callback_exception = rce
 

	
 
cgitb.enable(format='txt')
0 comments (0 inline, 0 general)