A comment about what _finish is here for

This commit is contained in:
Jean-Paul Calderone 2020-10-21 07:25:48 -04:00
parent d8b6e36c6f
commit e8761c98ad

View File

@ -540,6 +540,8 @@ def render_exception(render):
with action.context(): with action.context():
result = DeferredContext(maybeDeferred(bound_render, request)) result = DeferredContext(maybeDeferred(bound_render, request))
# Apply `_finish` all of our result handling logic to whatever it
# returned.
result.addBoth(_finish, bound_render, request) result.addBoth(_finish, bound_render, request)
result.addActionFinish() result.addActionFinish()
return NOT_DONE_YET return NOT_DONE_YET