Commit d307bb9c authored by Malthe Borch's avatar Malthe Borch Committed by Tres Seaver

Ensure that interaction ends, once begun.

Wrap in try-finally.

Cherry-pick c73dfcd1 from master.
parent a2e8e90a
......@@ -167,6 +167,7 @@ def publish(request, module_name,
notify(PubStart(request))
newInteraction()
try:
request.processInputs()
response = request.response
......@@ -206,7 +207,7 @@ def publish(request, module_name,
if result is not response:
response.setBody(result)
finally:
endInteraction()
notify(PubBeforeCommit(request))
......
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