Skip to content

Commit 39e06ef

Browse files
Apply suggestions from code review
Co-authored-by: Ivana Kellyer <[email protected]>
1 parent ac5eeae commit 39e06ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/integrations/openai.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
RESPONSES_API_ENABLED = True
3232
try:
33-
# responses API support was instroduces in v1.66.0
33+
# responses API support was introduced in v1.66.0
3434
from openai.resources.responses import Responses, AsyncResponses
3535
except ImportError:
3636
RESPONSES_API_ENABLED = False
@@ -511,11 +511,11 @@ def _new_responses_create_common(f, *args, **kwargs):
511511
json.dumps([item.to_dict() for item in res.output]),
512512
)
513513
_calculate_token_usage([], res, span, None, integration.count_tokens)
514-
span.__exit__(None, None, None)
515514

516515
else:
517516
set_data_normalized(span, "unknown_response", True)
518-
span.__exit__(None, None, None)
517+
518+
span.__exit__(None, None, None)
519519

520520
return res
521521

0 commit comments

Comments
 (0)