Commit 2e98a84c authored by Wichert Akkerman's avatar Wichert Akkerman

Safety harness

parent 47168b89
......@@ -209,7 +209,7 @@ class ZPublisherExceptionHook:
# Zope 3 uses as well.
view = queryMultiAdapter((v, REQUEST), name=u'index.html')
if view is not None:
if IAcquirer.providedBy(published):
if IAcquirer.providedBy(view) and IAcquirer.providedBy(published):
view = view.__of__(published)
v = view()
response = REQUEST.RESPONSE
......
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