fix(ollama_chat): drop no-op except to stay under the complexity limit

chunk_parser was exactly at the C901 limit, so the new error check pushed it over. The except Exception: raise e block only re-raised the same error, so removing it keeps behavior the same and brings the function back to the limit.
This commit is contained in:
Padma 2026-10-09 12:11:42 +00:00 • committed by Padma Deepak
parent fde4885a63
commit 4e9ea80c16

View file

@ -567,5 +567,3 @@ class OllamaChatCompletionResponseIterator(BaseModelResponseIterator):
status_code=400,
headers={"Content-Type": "application/json"},
)
except Exception as e:
raise e