Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use include_url with Pydantic's V1 ValidationError #184

Merged
merged 1 commit into from
May 15, 2024

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented May 15, 2024

try:
err_json = exception.json(include_url=False)
except TypeError: # pragma: no cover
# pydantic v1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have 3 places already with this "pydantic v1" comment, FYI.

Copy link

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 23f8dbb
Status: ✅  Deploy successful!
Preview URL: https://424ac0fb.logfire-docs.pages.dev
Branch Preview URL: https://fix-pydantic-v1.logfire-docs.pages.dev

View logs

Copy link
Contributor

@alexmojaki alexmojaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw i don't even think we use this data anywhere

@Kludex Kludex merged commit 63a9c96 into main May 15, 2024
11 checks passed
@Kludex Kludex deleted the fix-pydantic-v1 branch May 15, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError on _exit_span() with Pydantic 1
2 participants