Re: [Tutor] using sys.excepthook to handle unhandled exception (corrected and reposted)

2008-08-27 Thread Kent Johnson
On Wed, Aug 27, 2008 at 3:18 PM, Tony Cappellini <[EMAIL PROTECTED]> wrote: > I would like to hear from the experiences of people "who have assigned > an exception handler function to sys.excepthook" as to how they > approached > this problem. More specifically, what issues they encountered, if an

[Tutor] using sys.excepthook to handle unhandled exception (corrected and reposted)

2008-08-27 Thread Tony Cappellini
I'm maintaining a large framework of python code where the original authors left many assert statements. When an unhandled exception occurs, the traceback is displayed on the screen. Ideally, I don't want the users to see the tracebacks from unhandled exceptions, but rather a short, useful message