diff --git a/litellm/integrations/gcs_bucket/gcs_bucket.py b/litellm/integrations/gcs_bucket/gcs_bucket.py index 1c2885a1519..f5ff8ea717e 100644 --- a/litellm/integrations/gcs_bucket/gcs_bucket.py +++ b/litellm/integrations/gcs_bucket/gcs_bucket.py @@ -115,8 +115,7 @@ class GCSBucketLogger(GCSBucketBase, AdditionalLoggingUtils): items_to_process = [] while len(items_to_process) < self.batch_size: try: - item = self.log_queue.get_nowait() - items_to_process.append(item) + items_to_process.append(self.log_queue.get_nowait()) except asyncio.QueueEmpty: break return items_to_process