Skip to content

Commit 15cc2cc

Browse files
committed
dunder mifflin'
1 parent 677bca5 commit 15cc2cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sentry_sdk/spotlight.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def capture_envelope(self, envelope):
8585
)
8686

8787
class SpotlightMiddleware(MiddlewareMixin): # type: ignore[misc]
88-
__spotlight_script = None # type: Optional[str]
88+
_spotlight_script = None # type: Optional[str]
8989

9090
def __init__(self, get_response):
9191
# type: (Self, Callable[..., HttpResponse]) -> None
@@ -107,7 +107,7 @@ def __init__(self, get_response):
107107
@property
108108
def spotlight_script(self):
109109
# type: (Self) -> Optional[str]
110-
if self.__spotlight_script is None:
110+
if self._spotlight_script is None:
111111
try:
112112
spotlight_js_url = urllib.parse.urljoin(
113113
self._spotlight_url, SPOTLIGHT_JS_ENTRY_PATH
@@ -117,7 +117,7 @@ def spotlight_script(self):
117117
method="HEAD",
118118
)
119119
urllib.request.urlopen(req)
120-
self.__spotlight_script = SPOTLIGHT_JS_SNIPPET_PATTERN.format(
120+
self._spotlight_script = SPOTLIGHT_JS_SNIPPET_PATTERN.format(
121121
spotlight_js_url
122122
)
123123
except urllib.error.URLError as err:
@@ -127,7 +127,7 @@ def spotlight_script(self):
127127
exc_info=err,
128128
)
129129

130-
return self.__spotlight_script
130+
return self._spotlight_script
131131

132132
def process_response(self, _request, response):
133133
# type: (Self, HttpRequest, HttpResponse) -> Optional[HttpResponse]

0 commit comments

Comments
 (0)