Skip to content

incorrect code into sample. #12364

Open
Open
@kurousa

Description

@kurousa

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      Waiting for: Support

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions