Skip to content

Commit 523d6cb

Browse files
committed
fix: Don't swallow exception
1 parent 9905629 commit 523d6cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/integrations/django.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ def sentry_patched_get_response(self, request):
4747

4848
try:
4949
return old_get_response(self, request)
50-
except Exception:
50+
except Exception as e:
5151
capture_exception()
52+
raise e
5253

5354
BaseHandler.get_response = sentry_patched_get_response
5455

0 commit comments

Comments
 (0)