[Zope] exceptions/documentation problem

Chris Withers chris at simplistix.co.uk
Mon Jul 19 02:55:50 EDT 2004


Dieter Maurer wrote:
> Note that it is *very* dangerous to catch exceptions.

I don't think so...

> When you do, your chance is quite high that you make your persistent
> state inconsistent -- one of the most horrible things that can happen.

Huh?

try:
    myfolder[somevar]
except KeyError:
    myfolder.manage_addProduct...

How is that going to result in inconsistent persistent state?

Chris

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



More information about the Zope mailing list