Skip to content

Commit ee257a0

Browse files
committed
.
1 parent 273e41e commit ee257a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/wsgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,12 @@ def close(self):
283283
with use_isolation_scope(self._isolation_scope):
284284
with use_scope(self._current_scope):
285285
try:
286-
self._response.close() # type: ignore
287-
288286
# Close the Sentry transaction
289287
# This is done here to make sure the Transaction stays
290288
# open until all streaming responses are done.
291289
finish_running_transaction()
290+
291+
self._response.close() # type: ignore
292292
except AttributeError:
293293
pass
294294
except BaseException:

0 commit comments

Comments
 (0)