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