We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e5251c commit 4731ce3Copy full SHA for 4731ce3
sentry_sdk/integrations/pure_eval.py
@@ -1,6 +1,7 @@
1
import ast
2
3
-from sentry_sdk import Hub, serializer
+import sentry_sdk
4
+from sentry_sdk import serializer
5
from sentry_sdk._types import TYPE_CHECKING
6
from sentry_sdk.integrations import Integration, DidNotEnable
7
from sentry_sdk.scope import add_global_event_processor
@@ -39,7 +40,7 @@ def setup_once():
39
40
@add_global_event_processor
41
def add_executing_info(event, hint):
42
# type: (Event, Optional[Hint]) -> Optional[Event]
- if Hub.current.get_integration(PureEvalIntegration) is None:
43
+ if sentry_sdk.get_client().get_integration(PureEvalIntegration) is None:
44
return event
45
46
if hint is None:
0 commit comments