what exception is it?
Maurice LING
mauriceling at acm.org
Wed Oct 13 22:22:52 EDT 2004
Hi,
I'm trapping exceptions with these codes...
try:
[do something]
except IOError: [IO error handling]
except TypeError: [Type error handling]
except: [other error handling]
in [other error handling], one of the things I need to do is to display
to the use the kind of exception raised and the message, if any.
How can I do this without a big if statement to go through the list of
exceptions?
Thanks in advance.
Maurice
More information about the Python-list
mailing list