Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions sentry_sdk/integrations/pure_eval.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ast

from sentry_sdk import Hub, serializer
import sentry_sdk
from sentry_sdk import serializer
from sentry_sdk._types import TYPE_CHECKING
from sentry_sdk.integrations import Integration, DidNotEnable
from sentry_sdk.scope import add_global_event_processor
Expand Down Expand Up @@ -39,7 +40,7 @@ def setup_once():
@add_global_event_processor
def add_executing_info(event, hint):
# type: (Event, Optional[Hint]) -> Optional[Event]
if Hub.current.get_integration(PureEvalIntegration) is None:
if sentry_sdk.get_client().get_integration(PureEvalIntegration) is None:
return event

if hint is None:
Expand Down