diff --git a/litellm/integrations/s3_v2.py b/litellm/integrations/s3_v2.py index 569f84ab2f2..dc33fe6c2bd 100644 --- a/litellm/integrations/s3_v2.py +++ b/litellm/integrations/s3_v2.py @@ -487,7 +487,7 @@ class S3Logger(CustomBatchLogger, BaseAWSLLM): failed: Final = tuple(element for element, ok in zip(uploads, results, strict=True) if not ok) if not failed: return - self.log_queue[:] = [*failed, *self.log_queue[len(batch) :]] + self.log_queue = [*failed, *self.log_queue[len(batch) :]] raise S3BatchUploadError(failed=len(failed), total=len(uploads)) def _batch_file_mode_active(self) -> bool: