From b94688481a7114d039c80234907d14a010253755 Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Fri, 20 Feb 2026 17:07:28 +0100 Subject: [PATCH] docs(openai-agents): Remove inapplicable comment --- sentry_sdk/integrations/openai_agents/patches/models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sentry_sdk/integrations/openai_agents/patches/models.py b/sentry_sdk/integrations/openai_agents/patches/models.py index 6b5dceef97..58f0f3b199 100644 --- a/sentry_sdk/integrations/openai_agents/patches/models.py +++ b/sentry_sdk/integrations/openai_agents/patches/models.py @@ -133,8 +133,6 @@ async def wrapped_get_response(*args: "Any", **kwargs: "Any") -> "Any": @wraps(original_stream_response) async def wrapped_stream_response(*args: "Any", **kwargs: "Any") -> "Any": - # Uses explicit try/finally instead of context manager to ensure cleanup - # even if the consumer abandons the stream (GeneratorExit). span_kwargs = dict(kwargs) if len(args) > 0: span_kwargs["system_instructions"] = args[0]