Re: [Tutor] A question abt exception handling
import traceback try: something_funny() except: traceback.print_exc() should do the trick for you. Dustin ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] A question abt exception handling
Hi Folks, I want to know how we can print the error message when an exception is generated. I mean "the exact error message that is generated by the python interpreter." My code is as under: def check_date(date,num_days): # this function takes a date and number of days and returns the st