parameters: (exception)
docstring: Closes the database again at the end of the request.
docstring_summary: Closes the database again at the end of the request.
docstring_tokens: Closes the database again at the end of the request .
function: def teardown_request(exception):
      """Closes the database again at the end of the request."""
      if hasattr(g, 'db'):
          g.db.close()
function_tokens: def teardown_request ( exception ) : if hasattr ( g , 'db' ) : g . db . close ( )