From e8761c98ad0ed989a2990514fd419c55c26942d4 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Wed, 21 Oct 2020 07:25:48 -0400 Subject: [PATCH] A comment about what `_finish` is here for --- src/allmydata/web/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/allmydata/web/common.py b/src/allmydata/web/common.py index 3338b4a1f..038340fe8 100644 --- a/src/allmydata/web/common.py +++ b/src/allmydata/web/common.py @@ -540,6 +540,8 @@ def render_exception(render): with action.context(): 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.addActionFinish() return NOT_DONE_YET