Skip to content

Commit 523ff93

Browse files
authored
ref(executing): Use new scopes API (#2897)
1 parent ccb311f commit 523ff93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/executing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from sentry_sdk import Hub
1+
import sentry_sdk
22
from sentry_sdk._types import TYPE_CHECKING
33
from sentry_sdk.integrations import Integration, DidNotEnable
44
from sentry_sdk.scope import add_global_event_processor
@@ -25,7 +25,7 @@ def setup_once():
2525
@add_global_event_processor
2626
def add_executing_info(event, hint):
2727
# type: (Event, Optional[Hint]) -> Optional[Event]
28-
if Hub.current.get_integration(ExecutingIntegration) is None:
28+
if sentry_sdk.get_client().get_integration(ExecutingIntegration) is None:
2929
return event
3030

3131
if hint is None:

0 commit comments

Comments
 (0)