Example #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()
Example #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()
def on_request_end(error):
    """Make sure we always close the DB at the end of a request."""
    close_db_connection()