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