File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 55from sentry_sdk ._werkzeug import get_host , _get_headers
66from sentry_sdk .api import continue_trace
77from 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
99from 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 :
You can’t perform that action at this time.
0 commit comments