howto catch an Exception and still print the TraceBack?

Saizan sanzhiyan at gmail.com
Thu Feb 2 02:06:51 EST 2006


Thanks, I had completely missed the module traceback...
I'll use traceback.print_exc(), it seems the most straightforward way.
The only flaw is that the traceback starts in the method where i catch the exception and not from "__main__", but I guess it can't be helped.



More information about the Python-list mailing list