Capturing exceptions?

Dfenestr8 chrisdewinN0SPAM at
Wed Aug 25 19:12:17 CEST 2004


What's the easiest way to capture the traceback from an exception, and
write it to a file? Ideally, I'd like to be able to do something like:

>	main()
>	write the traceback to a file

More information about the Python-list mailing list