[Zope-dev] Re: ZPatterns: Errors in triggered methods + patch

Steve Alexander steve@cat-box.net
Wed, 12 Jul 2000 17:07:18 +0100


Steve Alexander wrote:
> 
> Latest ZPatterns release. Zope 2.2b4.
> 
> If I raise an error in an external method that is called by a
> GenericTrigger, I sometimes get a strange log message:

<various bits snipped>

> I've put the call to each Agent's "change observed" event in a
> try-except block. This makes my Zope instance happier when I do stupid
> things in external methods, and has the additional advantage of
> insulating other Agents from one particular Agent's problems.

Of course, a patch that made a suitable log entry would be better than
what I just posted to the list, which just writes the execption and
traceback to stderr.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net