Commit 3fb86f36 authored by Shane Hathaway's avatar Shane Hathaway

Raise the correct exception

parent ad95f38e
##############################################################################
#############################################################################
#
# Zope Public License (ZPL) Version 1.0
# -------------------------------------
......@@ -83,7 +83,7 @@
#
##############################################################################
__version__='$Revision: 1.2 $'[11:-2]
__version__='$Revision: 1.3 $'[11:-2]
from RestrictedPython.Guards import safe_builtins, _full_read_guard, \
full_write_guard
......@@ -109,7 +109,7 @@ def guarded_getattr(inst, name, default=_marker):
except AttributeError:
if default is not _marker:
return default
raise AttributeError
raise
validate = getSecurityManager().validate
# Filter out the objects we can't access.
if hasattr(inst, 'aq_acquire'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment