Kevin Dangoor wrote:
On 1/7/06, Cliff Wells <[EMAIL PROTECTED]> wrote:
 >>> import sys, traceback
 >>> try:
...     print x
... except:
...     traceback.print_exc(file = sys.stdout)
...     print y
...     raise
...

Do you really mean sys.stdout? What about sys.stderr (the default)?

Should this go through the logging module, so that the destination is
a bit more controllable?

Kevin

Sorry, that was just an example of not losing the original exception, not an actual suggestion of where the exception should go (copy/paste/send error).

Cliff

Reply via email to