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

fix: token retrieval for sdk in debug #27669

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

skoob13
Copy link
Contributor

@skoob13 skoob13 commented Jan 18, 2025

Problem

When the User model doesn't exist, Django will fail to initialize—more context: https://posthog.slack.com/archives/C06NZEZ7V3Q/p1737205157108649.

Changes

Catch an exception and skip the SDK initialization.

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

N/A

@skoob13 skoob13 requested review from pauldambra and Twixes January 18, 2025 14:20
Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

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

nice 🙏

@pauldambra pauldambra enabled auto-merge (squash) January 18, 2025 14:35
@pauldambra pauldambra merged commit b56d6d1 into master Jan 18, 2025
93 checks passed
@pauldambra pauldambra deleted the fix/user-for-local-assistant-observability branch January 18, 2025 14:43
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.

2 participants