Skip to content

Commit c7ee495

Browse files
lint
1 parent e81aa20 commit c7ee495

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sentry_sdk/integrations/openai_agents/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _patch_agent_runner_get_model() -> None:
4848
)
4949

5050

51-
def _patch_run_internal_get_model():
51+
def _patch_run_internal_get_model() -> None:
5252
agents.run_internal.run_loop.get_model = _create_run_internal_get_model_wrapper(
5353
turn_preparation.get_model
5454
)
@@ -83,7 +83,8 @@ def setup_once() -> None:
8383
agents.run.DEFAULT_AGENT_RUNNER.run_streamed
8484
)
8585

86-
if parse_version(OPENAI_AGENTS_VERSION) >= (
86+
library_version = parse_version(OPENAI_AGENTS_VERSION)
87+
if library_version is not None and library_version >= (
8788
0,
8889
8,
8990
):

0 commit comments

Comments
 (0)