Skip to content

Commit 17df886

Browse files
committed
use the right import
1 parent 61a5c5d commit 17df886

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sentry_sdk/integrations/wsgi.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from sentry_sdk._werkzeug import get_host, _get_headers
66
from sentry_sdk.api import continue_trace
77
from sentry_sdk.consts import OP
8-
from sentry_sdk.scope import should_send_default_pii
8+
from sentry_sdk.scope import should_send_default_pii, use_isolation_scope, use_scope
99
from sentry_sdk.integrations._wsgi_common import (
1010
DEFAULT_HTTP_METHODS_TO_CAPTURE,
1111
_filter_headers,
@@ -256,8 +256,8 @@ def __iter__(self):
256256
iterator = iter(self._response)
257257

258258
while True:
259-
with sentry_sdk.use_isolation_scope(self._isolation_scope):
260-
with sentry_sdk.use_scope(self._current_scope):
259+
with use_isolation_scope(self._isolation_scope):
260+
with use_scope(self._current_scope):
261261
try:
262262
chunk = next(iterator)
263263
except StopIteration:
@@ -269,8 +269,8 @@ def __iter__(self):
269269

270270
def close(self):
271271
# type: () -> None
272-
with sentry_sdk.use_isolation_scope(self._isolation_scope):
273-
with sentry_sdk.use_scope(self._current_scope):
272+
with use_isolation_scope(self._isolation_scope):
273+
with use_scope(self._current_scope):
274274
try:
275275
self._response.close() # type: ignore
276276
except AttributeError:

0 commit comments

Comments
 (0)