Skip to content

Commit 96f45fa

Browse files
.
1 parent 4dbb8bf commit 96f45fa

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

sentry_sdk/integrations/pydantic_ai/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,14 @@ def setup_once() -> None:
168168
try:
169169
PYDANTIC_AI_VERSION = version("pydantic-ai-slim")
170170
except PackageNotFoundError:
171-
_patch_graph_nodes()
172171
return
173172

174-
# ModelRequestContext.model added in https://github.com/pydantic/pydantic-ai/commit/f1260dfe09907f17688eee1646daf898fc428d4c
175173
PYDANTIC_AI_VERSION = parse_version(PYDANTIC_AI_VERSION)
176-
if PYDANTIC_AI_VERSION is None or PYDANTIC_AI_VERSION < (
174+
if PYDANTIC_AI_VERSION is None:
175+
return
176+
177+
# ModelRequestContext.model added in https://github.com/pydantic/pydantic-ai/commit/f1260dfe09907f17688eee1646daf898fc428d4c
178+
if PYDANTIC_AI_VERSION < (
177179
1,
178180
73,
179181
):

0 commit comments

Comments
 (0)