[Zope] Re: Uncaptured python exception

Tres Seaver tseaver at palladion.com
Thu May 31 12:03:38 EDT 2007


-----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 at 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-----



More information about the Zope mailing list