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):
304304 finally :
305305 with use_isolation_scope (self ._isolation_scope ):
306306 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 ()
311308
312309 def close (self ):
313310 # type: () -> None
314311 with use_isolation_scope (self ._isolation_scope ):
315312 with use_scope (self ._current_scope ):
316313 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.
320314 finish_running_transaction ()
321-
322315 self ._response .close () # type: ignore
323316 except AttributeError :
324317 pass
You can’t perform that action at this time.
0 commit comments