[Zope-dev] SVN: Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py Catch all exceptions; it's not required to be able to determine length.

Chris Withers chris at simplistix.co.uk
Fri Nov 28 06:14:02 EST 2008


Tres Seaver wrote:
> Hmm, some exceptions should never be caught (KeyboardInterrupt,
> SystemExit, ConflictError).

indeed, changing to:

except Exception:

...will do the right thing for Python >= 2.5

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list