Re: [Tutor] using sys.excepthook to handled unhandled exceptions

2008-08-27 Thread Alan Gauld
"Tony Cappellini" <[EMAIL PROTECTED]> wrote With that in mind, I thought I would add a handler which logs the tracebacks to a file, display a 1-line message about the error on the screen, so the user has some idea of what happened, along with a simple message like this I tend to do that afte

[Tutor] using sys.excepthook to handled unhandled exceptions

2008-08-27 Thread Tony Cappellini
The original authors left asserts in many places and I don't want the people using the code to see the ugly tracebacks. want to add an unhandled exception handler to a large framework that I'm maintaining, to make the applications behave better, Users of a program shouldn't need to know anything