Skip to content

Commit 79b1b63

Browse files
function arguments
1 parent f111fad commit 79b1b63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/openai_agents/patches/agent_run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ async def _run_single_turn_streamed(
153153

154154
try:
155155
result = await original_run_single_turn_streamed(*args, **kwargs)
156-
except Exception as exc:
156+
except Exception:
157157
exc_info = sys.exc_info()
158158
with capture_internal_exceptions():
159159
if span is not None and span.timestamp is None:
160-
set_span_errored(span, exc)
160+
set_span_errored(span)
161161
end_invoke_agent_span(context_wrapper, agent)
162162
_close_streaming_workflow_span(agent)
163163
reraise(*exc_info)

0 commit comments

Comments
 (0)