Catching an unknown error

Fredrik Lundh fredrik at
Fri Mar 23 14:34:07 CET 2007

kyosohma at 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).


More information about the Python-list mailing list