Skip to content

Commit 4dbb8bf

Browse files
.
1 parent 721799c commit 4dbb8bf

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

sentry_sdk/integrations/pydantic_ai/__init__.py

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

177174
# ModelRequestContext.model added in https://github.com/pydantic/pydantic-ai/commit/f1260dfe09907f17688eee1646daf898fc428d4c
178-
if PYDANTIC_AI_VERSION < (
175+
PYDANTIC_AI_VERSION = parse_version(PYDANTIC_AI_VERSION)
176+
if PYDANTIC_AI_VERSION is None or PYDANTIC_AI_VERSION < (
179177
1,
180178
73,
181179
):

0 commit comments

Comments
 (0)