def METHOD_NAME(self):
    if any(self.exception_ids.mapped("is_blocking")):
        raise UserError(
            _(
                "The exceptions can not be ignored, because "
                "some of them are blocking."
            )
        )
    self.write({"ignore_exception": True})
    return True