[PyKDE] How to capture python tracebacks?

Pete Ware ware at cis.ohio-state.edu
Mon Sep 10 14:59:46 BST 2001


If you are using Python >= 2.0, you can do:

        sys.excepthook = exception_warn

def exception_warn (self, type, value, traceback):
	warning ('Python Exception', 'Exception = %s\nValue = %s\n' % (str (type) ,str (value)))

--pete




More information about the PyQt mailing list