diff --git a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/anthropic_passthrough_logging_handler.py b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/anthropic_passthrough_logging_handler.py index e4c4fb6fc..1b18c3ab0 100644 --- a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/anthropic_passthrough_logging_handler.py +++ b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/anthropic_passthrough_logging_handler.py @@ -198,7 +198,7 @@ class AnthropicPassthroughLoggingHandler: ) if litellm_chunk is not None: all_openai_chunks.append(litellm_chunk) - except (StopIteration, StopAsyncIteration) as e: + except (StopIteration, StopAsyncIteration): break complete_streaming_response = litellm.stream_chunk_builder( chunks=all_openai_chunks