Skip to content

Commit 0fa479d

Browse files
committed
fix: don't consider StopIteration an error
1 parent 8f6eae2 commit 0fa479d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sentry_sdk/integrations/_wsgi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ def __iter__(self):
185185
def __next__(self):
186186
try:
187187
return next(self._response)
188+
except StopIteration:
189+
raise
188190
except Exception:
189191
einfo = sys.exc_info()
190192
sentry_sdk.capture_exception(einfo)

0 commit comments

Comments
 (0)