Skip to content

Commit 6652052

Browse files
BYKsentrivana
andauthored
Use self.sentry_sdk
Co-authored-by: Ivana Kellyer <[email protected]>
1 parent ad70179 commit 6652052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/spotlight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __init__(self, get_response):
9595

9696
self.sentry_sdk = sentry_sdk.api
9797

98-
spotlight_client = sentry_sdk.api.get_client().spotlight
98+
spotlight_client = self.sentry_sdk.get_client().spotlight
9999
if spotlight_client is None:
100100
sentry_logger.warning(
101101
"Cannot find Spotlight client from SpotlightMiddleware, disabling the middleware."

0 commit comments

Comments
 (0)