Skip to content

Commit b06bb01

Browse files
committed
make sure end context marker is printed on nullserver exception
1 parent 79252a1 commit b06bb01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spyne/server/null.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ def __call__(self, *args, **kwargs):
127127
# to hide the following
128128
logger.warning( "%s start context %s" % (_small_header, _small_footer) )
129129
logger.warning( "%r.%r" % (ctx.service_class, ctx.descriptor.function) )
130-
self.app.process_request(ctx)
131-
logger.warning( "%s end context %s" % (_small_header, _small_footer) )
130+
try:
131+
self.app.process_request(ctx)
132+
finally:
133+
logger.warning( "%s end context %s" % (_small_header, _small_footer) )
132134

133135
if ctx.out_error:
134136
raise ctx.out_error

0 commit comments

Comments
 (0)