Ok, Your statements have just helped me A LOT! I began to look at the menu structure of our app and it goes something like this: <dtml-try> <dtml-let report="REQUEST.SESSION.get('choice')> <dtml-if expr="report == 'ReportName'"> <dtml-var report_one> </dtml-if> </dtml-let> <dtml-except> Show report menu... </dtml-try> Which would cause all exceptions to be captured and throw you back to the menu. I clearly need to restructure this piece of code. This was obscuring my python errors. My apologies, and my thanks for helping me think this out. Jon -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Tres Seaver Sent: Thursday, May 31, 2007 12:04 PM To: zope@zope.org Subject: [Zope] Re: Uncaptured python exception -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jon Emmons wrote:
Sometimes, I do get those errors.
But if I take a working piece of python and stick in a sabotage statement like:
Var1 = var2
Where var2 is undefined (i.e. has never been assigned anything)
Just silent failure. No error.
Sorry, but without a full recipe to reproduce this, I don't believe you; Zope raises exceptions just fine, and catches them itself only at the publisher layer, where they get rendered into a standard error message, as well as being dumped to the 'error_log' object. The effect you describe would only occur if some piece of application code (your script, or something that calls it) were swallowing the exception with a 'try: ... except: pass' (or similar). I would need to see the entire text of your script, plus whether this is a PythonScript, an ExternalMethod, or some bit of filesystem product code. I would also need to know what version of Zope and Python you are using. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGXvHa+gerLs4ltQ4RAu6eAJ9rAgo3ZSYT7IOkj9YP5ySuPoVFkwCfdARO M54huFuJk8+C49WTgsfk5/Y= =Av4D -----END PGP SIGNATURE----- _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )