Commit cfdcf83e authored by Jérome Perrin's avatar Jérome Perrin

fixup! standard_error_message: Adjust exception context for Zope 4

parent 42384273
...@@ -6,10 +6,9 @@ ...@@ -6,10 +6,9 @@
""" """
from zExceptions import Unauthorized from zExceptions import Unauthorized
# Adjust exception context for Zope 4.
context = container.REQUEST.get('PARENTS', [context])[0]
try: try:
# Adjust exception context for Zope 4.
context = container.REQUEST.get('PARENTS', [context])[0]
return context.standard_error_message_template(*args, **kw) return context.standard_error_message_template(*args, **kw)
except Unauthorized: except Unauthorized:
pass pass
......
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