Catching an unknown error

Fredrik Lundh fredrik at
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.


More information about the Python-list mailing list