Thanks to everyone who responded!  A solution like sys.excepthook
is exactly what I was looking for, although I'll have to upgrade to
Python 2.1 to use it (I'm on python 2.0 now).  :)

Dave

Pete Ware wrote:

> 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

--
   Dave Smith
   Software Engineer
   TranscenData -- an ITI Business
   mailto:[EMAIL PROTECTED]
   http://www.TranscenData.com



_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde

Reply via email to