catching all exceptions
stephen_purcell at yahoo.com
Thu Feb 8 16:24:36 CET 2001
> with this I think I can catch all predefined exception classes, because
> Exceptions is the base class for all other exceptions, but I realy want
> to know which derived exception class was raised (and also the
> Is there (simple) way to do that in python (1.5.2)?
exc_type, exc_value, exc_traceback = sys.exc_info()
# Then write to database.
Steve Purcell, Pythangelist
Get testing at http://pyunit.sourceforge.net/
Available for consulting and training.
"Even snakes are afraid of snakes." -- Steven Wright
More information about the Python-list