We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 721799c commit 4dbb8bfCopy full SHA for 4dbb8bf
1 file changed
sentry_sdk/integrations/pydantic_ai/__init__.py
@@ -168,14 +168,12 @@ def setup_once() -> None:
168
try:
169
PYDANTIC_AI_VERSION = version("pydantic-ai-slim")
170
except PackageNotFoundError:
171
- return
172
-
173
- PYDANTIC_AI_VERSION = parse_version(PYDANTIC_AI_VERSION)
174
- if PYDANTIC_AI_VERSION is None:
+ _patch_graph_nodes()
175
return
176
177
# ModelRequestContext.model added in https://github.com/pydantic/pydantic-ai/commit/f1260dfe09907f17688eee1646daf898fc428d4c
178
- if PYDANTIC_AI_VERSION < (
+ PYDANTIC_AI_VERSION = parse_version(PYDANTIC_AI_VERSION)
+ if PYDANTIC_AI_VERSION is None or PYDANTIC_AI_VERSION < (
179
1,
180
73,
181
):
0 commit comments