(exception)
Closes the database again at the end of the request.
Closes the database again at the end of the request.
Closes the database again at the end of the request .
def teardown_request(exception):
    """Closes the database again at the end of the request."""
    if hasattr(g, 'db'):
        g.db.close()
def teardown_request ( exception ) : if hasattr ( g , 'db' ) : g . db . close ( )