(exception)
This function closes the database connection when done
This function closes the database connection when done
This function closes the database connection when done
def teardown_request(exception):
    ''' This function closes the database connection when done '''
    try:
        g.rdb_conn.close()
    except AttributeError:  # pragma: no cover
        # Who cares?
        pass
def teardown_request ( exception ) : try : g . rdb_conn . close ( ) except AttributeError : # pragma: no cover # Who cares? pass