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

incorrect code into sample. #12364

Open
kurousa opened this issue Jan 16, 2025 · 1 comment
Open

incorrect code into sample. #12364

kurousa opened this issue Jan 16, 2025 · 1 comment

Comments

@kurousa
Copy link

kurousa commented Jan 16, 2025

SDK

Python SDK

Description

There was an error in the Python (SDK 2.x) sample code in the following link.
Attachments | Sentry for Python

incorrect code here.

scope = sentry_sdk.get_current_scope() # this is incorrect, raise Attribute Error.

correct code here.

scope = sentry_sdk.Scope().get_current_scope() # this would be correct.

The Python SDK that was tested is 2.10.0.

Suggested Solution

No response

@getsantry
Copy link
Contributor

getsantry bot commented Jan 16, 2025

Assigning to @getsentry/support for routing ⏲️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Support
Development

No branches or pull requests

1 participant