Ejemplo n.º 1
0
def on_request_end(error):
    """
    Make sure we always close the DB at the end of a request.

    :param error: error (unused)
    """
    close_db_connection()
Ejemplo n.º 2
0
def on_request_end(error: callable) -> None:
    """
    Make sure we always close the DB at the end of a request.

    Arguments:
        error: required error object to pass, unused
    Returns:
        None
    """
    close_db_connection()
Ejemplo n.º 3
0
def on_request_end(error):
    """Make sure we always close the DB at the end of a request."""
    close_db_connection()