Re: Getting backtrace on an axception

2006-06-10 Thread Fredrik Lundh
Paolo Pantaleo wrote: > 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]. >>> import traceback >>> help(traceback) -- http://mail.python.org/mail

Getting backtrace on an axception

2006-06-10 Thread Paolo Pantaleo
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.extrac