Catching an unknown error

Fredrik Lundh fredrik at pythonware.com
Fri Mar 23 09:34:07 EDT 2007


kyosohma at gmail.com wrote:

> Make the last 'except' block like this:
>
> Except Exception, e:
>   print e

while that's good enough for the given example, it's not good enough for
the general case (in contemporary Python, exceptions don't have to inherit
from the Exception class).

</F> 






More information about the Python-list mailing list