zabbix_bot.py
def _error(matrix_config, room, error):
    """Error handling function. Prints a traceback to the log and the
    title of the error is returned to matrix.

    :param matrix_config: the matrix configuration
    :type matrix_config: dict
    :param room: matrix room reference
    :type room: matrix room object
    :param error: reference to the exception
    :type error: exception
    """
    logging.error(error, exc_info=True)
    message = "{0}<br /><br />Please see my log.".format(
        str(error))
    matrix_config['message'] = message
    matrix.send_message(matrix_config, room)
Error handling function. Prints a traceback to the log and the
    title of the error is returned to matrix.

    :param matrix_config: the matrix configuration
    :type matrix_config: dict
    :param room: matrix room reference
    :type room: matrix room object
    :param error: reference to the exception
    :type error: exception
    
Error handling function. Prints a traceback to the log and the
title of the error is returned to matrix.
Error handling function . Prints a traceback to the log and the title of the error is returned to matrix .
def _error(matrix_config, room, error):
    logging.error(error, exc_info=True)
    message = "{0}<br /><br />Please see my log.".format(
        str(error))
    matrix_config['message'] = message
    matrix.send_message(matrix_config, room)
def _error ( matrix_config , room , error ) : logging . error ( error , exc_info = True ) message = "{0}<br /><br />Please see my log." . format ( str ( error ) ) matrix_config [ 'message' ] = message matrix . send_message ( matrix_config , room )
Error handling function.
Error handling function .
"""Error handling function. Prints a traceback to the log and the
    title of the error is returned to matrix.

    :param matrix_config: the matrix configuration
    :type matrix_config: dict
    :param room: matrix room reference
    :type room: matrix room object
    :param error: reference to the exception
    :type error: exception
    """
matrix_config
the matrix configuration
the matrix configuration
room
matrix room reference
matrix room reference
error
reference to the exception
reference to the exception