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

Fixed local var not present when error in users error_sampler function #2511

Merged
merged 8 commits into from Dec 13, 2023

Conversation

antonpirker
Copy link
Member

When a user has an error in her error_sampler function (like having the wrong number of function parameters specified) the SDK raised an error in line 468 because the sample_rate var was never assigned something.

Copy link
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

Please see inline comment

sentry_sdk/client.py Outdated Show resolved Hide resolved
Copy link
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

Looks about right, just one more suggestion

sentry_sdk/client.py Show resolved Hide resolved
@antonpirker antonpirker enabled auto-merge (squash) December 13, 2023 11:33
@antonpirker antonpirker merged commit 4731312 into master Dec 13, 2023
122 of 123 checks passed
@antonpirker antonpirker deleted the antonpirker/fix-error-sampler-error branch December 13, 2023 11:39
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.

None yet

2 participants