File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -304,21 +304,14 @@ def __iter__(self):
304
304
finally :
305
305
with use_isolation_scope (self ._isolation_scope ):
306
306
with use_scope (self ._current_scope ):
307
- # Close the Sentry transaction (it could be that response.close() is never called by the framework)
308
- # This is done here to make sure the Transaction stays
309
- # open until all streaming responses are done.
310
- finish_running_transaction (self ._current_scope )
307
+ finish_running_transaction ()
311
308
312
309
def close (self ):
313
310
# type: () -> None
314
311
with use_isolation_scope (self ._isolation_scope ):
315
312
with use_scope (self ._current_scope ):
316
313
try :
317
- # Close the Sentry transaction
318
- # This is done here to make sure the Transaction stays
319
- # open until all streaming responses are done.
320
314
finish_running_transaction ()
321
-
322
315
self ._response .close () # type: ignore
323
316
except AttributeError :
324
317
pass
You can’t perform that action at this time.
0 commit comments