Re: [Python-Dev] StreamHandler eating exceptions

2005-10-31 Thread Guido van Rossum
I wonder if, once PEP 352 is accepted, this shouldn't be changed so that there is only one except clause instead of two, and it says "except Exception:". This has roughly the same effect as the proposed (and already applied) patch, but does it in a Python-3000-compatible way. ATM it is less robust

Re: [Python-Dev] StreamHandler eating exceptions

2005-10-31 Thread Vinay Sajip
Gustavo Niemeyer niemeyer.net> writes: > > The StreamHandler available under the logging package is currently > catching all exceptions under the emit() method call. In the > Handler.handleError() documentation it's mentioned that it's > implemented like that because users do not care about erro

Re: [Python-Dev] StreamHandler eating exceptions

2005-10-30 Thread Fred L. Drake, Jr.
On Sunday 30 October 2005 18:37, Gustavo Niemeyer wrote: > I'd like to apply the following patch: +1 Might want to include SystemExit as well, though I think that's less likely to be seen in practice. -Fred -- Fred L. Drake, Jr. ___ Python-De

[Python-Dev] StreamHandler eating exceptions

2005-10-30 Thread Gustavo Niemeyer
The StreamHandler available under the logging package is currently catching all exceptions under the emit() method call. In the Handler.handleError() documentation it's mentioned that it's implemented like that because users do not care about errors in the logging system. I'd like to apply the fol