[Chicago] How to know more about the raised exception?

Timmy timheit at netvigator.com
Sun Nov 4 09:42:55 CET 2007


Hi, 
   I has a question about exception in python.
   I know that an exception can be re-raised. 
Is there any simple way provided by python itself that I can know the current exception is 
just firstly occurred or it is re-raised by previous exception?
I need to know whether it is firstly occurred or not 
because I want to just display an error message if it's
firstly occur and skip display error message if the exception is just re-raised by previous exception.

Thanks!



More information about the Chicago mailing list