[Zope] Trapping zope exceptions in python script
Andreas Jung
lists at andreas-jung.com
Thu Dec 15 00:55:35 EST 2005
--On 14. Dezember 2005 16:20:57 -0500 Jonathan <dev101 at magma.ca> wrote:
> Thanks to everyone for the feedback... the bottom line seems to be that
> you can NOT trap zope exceptions in a python script... which seems a bit
> odd.
>
Nothing is odd. I just told you to avoid *bare* try..excepts..as Tino
pointed out you should must reraise re-raise excepctions like
ConflictErrors. Otherwise if you don#t know what you're doing, don't use
bare try...excepts.
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20051215/14f7cfb6/attachment.bin
More information about the Zope
mailing list