Skip to content

Commit 2e69500

Browse files
committed
Cleanup
1 parent 2feb299 commit 2e69500

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

sentry_sdk/integrations/wsgi.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)