def handle_corrupt_data(self, index, obj, corrupt_data):
        """Handle corrupt data by appending it to the corrupt_data list.

        Args:
            index (int): The index of the task.
            obj: The object to be handled.
            corrupt_data (list): A list to store corrupt data.
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            corrupt_data.append(str(obj))
        except TypeError as err:
            applogger.error(
                self.log_format.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    consts.TYPE_ERROR_MSG.format(
                        "{}, for task = {}".format(err, index)
                    ),
                )
            )
Handle corrupt data by appending it to the corrupt_data list.

        Args:
            index (int): The index of the task.
            obj: The object to be handled.
            corrupt_data (list): A list to store corrupt data.
        
Solutions/Mimecast/Data Connectors/MimecastCloudIntegrated/MimecastCI/mimecast_ci_to_sentinel.py