Q: Catching any exception an printing it
skip at mojam.com
Mon Feb 21 14:42:06 EST 2000
Stuart> but is it possible to print out the exception if you don't know
Stuart> what type it is? I'd like the above error message to be more
Stuart> useful, but the exception raised inside the try block could be
Stuart> anything. Is it possible to find the last exception raised?
Check the docs for the sys.exc_info() function.
Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
"Languages that change by catering to the tastes of non-users tend not to do
so well." - Doug Landauer
More information about the Python-list