Commit be6c0474 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

standard_error_message: return an empty body in case of redirect.

parent c278f348
Pipeline #26403 failed with stage
...@@ -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