def mark_error(self, dispatch, error_log, message_cls):
        """Marks a dispatch as having error or consequently as failed
        if send retry limit for that message type is exhausted.

        Should be used within send().

        :param Dispatch dispatch: a Dispatch
        :param str error_log: error message
        :param MessageBase message_cls: MessageBase heir
        """
        if message_cls.send_retry_limit is not None and message_cls.send_retry_limit >= (dispatch.retry_count + 1):
            self.mark_failed(dispatch, error_log)
        else:
            dispatch.error_log = error_log
            self._st['error'].append(dispatch)
dataset/ETHPy150Open idlesign/django-sitemessage/sitemessage/messengers/base.py/MessengerBase.mark_error/swapped operands of `>=`