Traceback output
gbreed at cix.compulink.co.uk
gbreed at cix.compulink.co.uk
Wed Jun 13 05:20:38 EDT 2001
In article <3B272970.4BA5D01C at usa.net>, mixo77 at usa.net (mixo)
wrote:
> How can I catch output from "traceback.print_exc()"? I would
> to be able to do is write the information in a file .
> I
>
from sys import exc_info
from traceback import format_exception
...
ex1, ex2, ex3 = exc_info()
exceptionString = format_exception(ex1, ex2, ex3)
Graham
More information about the Python-list
mailing list