1.1 --- a/WebStack/Adapters/ModPython.py Thu Nov 17 19:21:34 2005 +0000
1.2 +++ b/WebStack/Adapters/ModPython.py Sat Nov 19 23:59:54 2005 +0000
1.3 @@ -38,20 +38,24 @@
1.4
1.5 try:
1.6 try:
1.7 - resource.respond(trans)
1.8 - except EndOfResponse:
1.9 - pass
1.10 - trans.commit()
1.11 - return trans.get_response_code()
1.12 - except:
1.13 + try:
1.14 + resource.respond(trans)
1.15 + except EndOfResponse:
1.16 + pass
1.17 + return trans.get_response_code()
1.18 +
1.19 + except:
1.20
1.21 - # NOTE: Error conditions should be investigated further, along with
1.22 - # NOTE: other response states.
1.23 + # NOTE: Error conditions should be investigated further, along with
1.24 + # NOTE: other response states.
1.25
1.26 - if handle_errors:
1.27 - return apache.HTTP_INTERNAL_SERVER_ERROR
1.28 - else:
1.29 - raise
1.30 + if handle_errors:
1.31 + return apache.HTTP_INTERNAL_SERVER_ERROR
1.32 + else:
1.33 + raise
1.34 +
1.35 + finally:
1.36 + trans.commit()
1.37
1.38 def authenticate(request, authenticator, handle_errors=1):
1.39