From 5533ba4b046d26d3355215137b7df6ef0665c015 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 21 Nov 2024 17:27:31 -0800 Subject: [PATCH] fix code quality --- .../anthropic_passthrough_logging_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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