def _handle_authentications_error(error_message):
    '\n    Logs an error and raises MonaAuthenticationException if\n    RAISE_AUTHENTICATION_EXCEPTIONS is true, else returns false.\n    '
    get_logger().error(error_message)
    if RAISE_AUTHENTICATION_EXCEPTIONS:
        raise MonaAuthenticationException(error_message)
    return False
Logs an error and raises MonaAuthenticationException if
RAISE_AUTHENTICATION_EXCEPTIONS is true, else returns false.
def _handle_authentications_error(error_message):
    '\n    Logs an error and raises MonaAuthenticationException if\n    RAISE_AUTHENTICATION_EXCEPTIONS is true, else returns false.\n    '
    get_logger().error(error_message)
    if RAISE_AUTHENTICATION_EXCEPTIONS:
        raise MonaAuthenticationException(error_message)
    return False