Catching an unknown error

Fredrik Lundh fredrik at pythonware.com
Fri Mar 23 14:34:07 CET 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