From 4d7e918b6367e49cdbc6f078d49740b742c7e800 Mon Sep 17 00:00:00 2001 From: Oleksandr Tereshchenko Date: Tue, 9 Sep 2025 17:55:03 +0300 Subject: [PATCH] restore forgotten `raise` keyword in front of an `exception_type()` call --- litellm/litellm_core_utils/streaming_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/litellm_core_utils/streaming_handler.py b/litellm/litellm_core_utils/streaming_handler.py index 2203cac11d0..83b4985b239 100644 --- a/litellm/litellm_core_utils/streaming_handler.py +++ b/litellm/litellm_core_utils/streaming_handler.py @@ -1937,7 +1937,7 @@ class CustomStreamWrapper: ) ## Map to OpenAI Exception try: - exception_type( + raise exception_type( model=self.model, custom_llm_provider=self.custom_llm_provider, original_exception=e,