Commit fb4f7d81 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Arnaud Fontaine

standard_error_message: return an empty body in case of redirect.

parent 7960813c
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
it tries to render the error from the web site root. If no web site it tries to render the error from the web site root. If no web site
root is defined then it renders the error from portal. root is defined then it renders the error from portal.
""" """
from zExceptions import Unauthorized from zExceptions import Redirect, Unauthorized
if isinstance(kw.get('error_value'), Redirect):
return ''
try: try:
# Adjust exception context for Zope 4. # Adjust exception context for Zope 4.
......
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