Getting backtrace on an axception
Paolo Pantaleo
paolopantaleo at gmail.com
Sat Jun 10 13:24:28 EDT 2006
So I have this code
try:
do something
except:
do something else
In the except block I need to print detailed output about the error
occured, and in particular I need to read the backtrace for the line
that raised the exception [then modify and print it]. I know about the
exception.extract_tb() and friends, but I can't figure out how they
works.
Can somebody exlpain me?
Thnx
PAolo
--
if you have a minute to spend please visit my photogrphy site:
http://mypic.co.nr
More information about the Python-list
mailing list