Skip to content

Commit ae9440f

Browse files
committed
Dont close transaction here (that was the whole idea) only in error case.
1 parent 4ebc14e commit ae9440f

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
@@ -135,9 +135,9 @@ def __call__(self, environ, start_response):
135135
),
136136
)
137137
except BaseException:
138-
reraise(*_capture_exception())
139-
finally:
140138
finish_running_transaction(current_scope, sys.exc_info())
139+
reraise(*_capture_exception())
140+
141141
finally:
142142
_wsgi_middleware_applied.set(False)
143143

0 commit comments

Comments
 (0)