16 Oct
2004
16 Oct
'04
10:23 a.m.
On Fri, 2004-10-15 at 19:32 +0200, Dieter Maurer wrote:
... try: context.manage_addProperty('prop', 0, 'boolean') print "prop added<br>" except: print "adding prop to",str(obj.id),"failed<br>"
Do not use "try: ... except:...". It is dangerous. It can easily lead to ZODB inconsistencies...
not exactly good news to me.... can you point out some document explaining this? can I raise exceptions from a python script? thanks massimo