Commit 1f5eb854 authored by Jérome Perrin's avatar Jérome Perrin

fixup! standard_error_message: Adjust exception context for Zope 4

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