def connection_teardown_request(error=None):
 try:
  CLIENT_POOL.release()
 except ClientPool.ExtraneousReleaseError:
  if (not settings.DEBUG_MODE):
   raise

def connection_teardown_request ( error = None ) : try : CLIENT_POOL . release ( ) except ClientPool . ExtraneousReleaseError : if ( not settings . DEBUG_MODE ) : raise
release the mongodb client back into the pool .