Catching an unknown error

Fredrik Lundh fredrik at pythonware.com
Fri Mar 23 14:30:19 CET 2007


Harlin Seritt wrote:

> In the last 'except' block, how can I print out the particular error
> name even though one is not specifically named?

the sys.exc_info() function returns information about the current exception.
see:

    http://effbot.org/pyref/sys.exc_info

</F> 






More information about the Python-list mailing list