Commit c73dfcd1 authored by Malthe Borch's avatar Malthe Borch

An interaction must end, once begun. Wrap in try-finally.

parent 3858283d
......@@ -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