Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
in case the error comes before opening the connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Navarro Bosch committed Mar 8, 2017
1 parent e273a07 commit 0b65bba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plone.server/plone/server/traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ async def resolve(self, request):
logger.error(
"Exception on resolve execution",
exc_info=e)
request.conn.close()
if hasattr(request, 'conn'):
request.conn.close()
raise e
if result is not None:
return result
Expand Down

0 comments on commit 0b65bba

Please sign in to comment.