| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:5a1bf524-571d-7733-bb0c-8bc11afa35f7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AD6C:476C3:42F9DA:5D3B88:6B008F17 |
| html-safe-nonce | f911e7f75f1f67c4b3a95bfae1cd8687340a1494205ea36d25cdaadecc353078 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDZDOjQ3NkMzOjQyRjlEQTo1RDNCODg6NkIwMDhGMTciLCJ2aXNpdG9yX2lkIjoiMzY3ODg0MDEwODc0MTU5NDkwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5446d2c2a9e4b2a768e0d4d0f6c27198ad6128dcb72892a9de17d8126e3fd1bc |
| hovercard-subject-tag | pull_request:4348150019 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-python/7238/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/67872a2bdb53e4c29602bb2e1b1233828fcf15ff785cac7ba1a936d21a8d168f/getsentry/sentry-python/pull/7238 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67872a2bdb53e4c29602bb2e1b1233828fcf15ff785cac7ba1a936d21a8d168f/getsentry/sentry-python/pull/7238 |
| og:image:alt | Description
Check that the output can be iterated so the SDK does not raise an exception.
Issues
Closes #7222
Reminders
Please add tests to validate your changes, and lint your code using uv run ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexander-alderman-webb |
| hostname | github.com |
| expected-hostname | github.com |
| None | c710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08 |
| turbo-cache-control | no-cache |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | be616a2a6ec1c609d6e002896dff5352d5c5f28b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/getsentry/sentry-python/pull/7238#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F7238 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F7238 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-python |
| Reload | https://github.com/getsentry/sentry-python/pull/7238 |
| Reload | https://github.com/getsentry/sentry-python/pull/7238 |
| Reload | https://github.com/getsentry/sentry-python/pull/7238 |
| getsentry | https://github.com/getsentry |
| sentry-python | https://github.com/getsentry/sentry-python |
| Code | https://github.com/getsentry/sentry-python |
| Issues345 (345) | https://github.com/getsentry/sentry-python/issues |
| Pull requests41 (41) | https://github.com/getsentry/sentry-python/pulls |
| Discussions | https://github.com/getsentry/sentry-python/discussions |
| Actions | https://github.com/getsentry/sentry-python/actions |
| Security and quality2 (2) | https://github.com/getsentry/sentry-python/security |
| Insights | https://github.com/getsentry/sentry-python/insights |
| https://github.com/getsentry/sentry-python |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| master | https://github.com/getsentry/sentry-python/tree/master |
| webb/openai/iterable | https://github.com/getsentry/sentry-python/tree/webb/openai/iterable |
| Conversation | https://github.com/getsentry/sentry-python/pull/7238 |
| Commits4 (4) | https://github.com/getsentry/sentry-python/pull/7238/commits |
| Checks | https://github.com/getsentry/sentry-python/pull/7238/checks |
| Files changed | https://github.com/getsentry/sentry-python/pull/7238/files |
| fix(openai): Check Response.output is a list before iterating | https://github.com/getsentry/sentry-python/pull/7238#top |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| master | https://github.com/getsentry/sentry-python/tree/master |
| webb/openai/iterable | https://github.com/getsentry/sentry-python/tree/webb/openai/iterable |
|
| https://github.com/alexander-alderman-webb |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| Aug 24, 2026 | https://github.com/getsentry/sentry-python/pull/7238#issue-5234405803 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
| #7222 | https://github.com/getsentry/sentry-python/issues/7222 |
| conventional commit | https://develop.sentry.dev/engineering-practices/commit-messages/#type |
| CONTRIBUTING.md | https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md |
| Sentry SDK development docs | https://develop.sentry.dev/sdk/ |
| Discord community | https://discord.gg/Ww9hbqr |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
|
| https://github.com/alexander-alderman-webb |
| fix(openai): Check output is a Sequence before iterating | https://github.com/getsentry/sentry-python/pull/7238/commits/ce3a17458c926fff377b9c1d96ea3ea1044e7dc4 |
| ce3a174 | https://github.com/getsentry/sentry-python/pull/7238/commits/ce3a17458c926fff377b9c1d96ea3ea1044e7dc4 |
| https://github.com/alexander-alderman-webb |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| August 24, 2026 11:55 | https://github.com/getsentry/sentry-python/pull/7238#event-29910470405 |
| https://github.com/alexander-alderman-webb |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| code owner | https://github.com/getsentry/sentry-python/blob/e32031816394208bce58c050ff563bfde8d7b228/.github/CODEOWNERS#L1 |
| August 24, 2026 11:55 | https://github.com/getsentry/sentry-python/pull/7238#event-29910470901 |
| https://github.com/apps/cursor |
| cursor | https://github.com/apps/cursor |
|
Aug 24, 2026
| https://github.com/getsentry/sentry-python/pull/7238#pullrequestreview-5007530953 |
|
View reviewed changes
| https://github.com/getsentry/sentry-python/pull/7238/files/ce3a17458c926fff377b9c1d96ea3ea1044e7dc4 |
| cursor | https://github.com/apps/cursor |
| https://github.com/getsentry/sentry-python/pull/7238#pullrequestreview-5007530953 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aTpkMTdmOTM2MS1lYzFmLTRkMzMtOWI0Ny0wNWEzNDIzOTEwYjUiLCJlbmNyeXB0aW9uS2V5IjoiR2d4VjM0RDNxVDBNSURMa3Z1NkQyM1JkWXQ4SkNxMkdJTjdUSWd0ZjNUSSIsImJyYW5jaCI6IndlYmIvb3BlbmFpL2l0ZXJhYmxlIiwicmVwb093bmVyIjoiZ2V0c2VudHJ5IiwicmVwb05hbWUiOiJzZW50cnktcHl0aG9uIiwicHJvdmlkZXIiOiJnaXRodWIifX0 |
| Cursor dashboard | https://www.cursor.com/dashboard/bugbot |
| Cursor Bugbot | https://cursor.com/bugbot |
| ce3a174 | https://github.com/getsentry/sentry-python/commit/ce3a17458c926fff377b9c1d96ea3ea1044e7dc4 |
| here | https://www.cursor.com/dashboard/bugbot |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
| sentry_sdk/integrations/openai.py | https://github.com/getsentry/sentry-python/pull/7238/files/ce3a17458c926fff377b9c1d96ea3ea1044e7dc4#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
|
| https://github.com/alexander-alderman-webb |
| add isinstance to other branch | https://github.com/getsentry/sentry-python/pull/7238/commits/e8e89d472009f5957f98448e87bcbfda71b5abb1 |
| e8e89d4 | https://github.com/getsentry/sentry-python/pull/7238/commits/e8e89d472009f5957f98448e87bcbfda71b5abb1 |
| https://github.com/apps/sentry-warden |
| sentry-warden | https://github.com/apps/sentry-warden |
|
Aug 24, 2026
| https://github.com/getsentry/sentry-python/pull/7238#pullrequestreview-5007619369 |
|
View reviewed changes
| https://github.com/getsentry/sentry-python/pull/7238/files/e8e89d472009f5957f98448e87bcbfda71b5abb1 |
| sentry_sdk/integrations/openai.py | https://github.com/getsentry/sentry-python/pull/7238/files/e8e89d472009f5957f98448e87bcbfda71b5abb1#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Aug 24, 2026 | https://github.com/getsentry/sentry-python/pull/7238#issuecomment-5395025318 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
| Codecov Action | https://github.com/getsentry/codecov-action |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
|
| https://github.com/alexander-alderman-webb |
| add isinstance check | https://github.com/getsentry/sentry-python/pull/7238/commits/7b867831335a97a18f8d05ff80a49187698b9b5a |
| 7b86783 | https://github.com/getsentry/sentry-python/pull/7238/commits/7b867831335a97a18f8d05ff80a49187698b9b5a |
| https://github.com/apps/sentry-warden |
| sentry-warden | https://github.com/apps/sentry-warden |
|
Aug 24, 2026
| https://github.com/getsentry/sentry-python/pull/7238#pullrequestreview-5007846335 |
|
View reviewed changes
| https://github.com/getsentry/sentry-python/pull/7238/files/7b867831335a97a18f8d05ff80a49187698b9b5a |
| sentry_sdk/integrations/openai.py | https://github.com/getsentry/sentry-python/pull/7238/files/7b867831335a97a18f8d05ff80a49187698b9b5a#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
| https://github.com/ericapisani |
| ericapisani | https://github.com/ericapisani |
|
Aug 24, 2026
| https://github.com/getsentry/sentry-python/pull/7238#pullrequestreview-5008095603 |
|
View reviewed changes
| https://github.com/getsentry/sentry-python/pull/7238/files/7b867831335a97a18f8d05ff80a49187698b9b5a |
| ericapisani | https://github.com/ericapisani |
| https://github.com/getsentry/sentry-python/pull/7238#pullrequestreview-5008095603 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
| https://github.com/alexander-alderman-webb |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| Aug 24, 2026 | https://github.com/getsentry/sentry-python/pull/7238#issuecomment-5395898684 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
|
| https://github.com/alexander-alderman-webb |
| check against list instead of Sequence | https://github.com/getsentry/sentry-python/pull/7238/commits/39db46036f541278e16f506592b5318a09432a7b |
| 39db460 | https://github.com/getsentry/sentry-python/pull/7238/commits/39db46036f541278e16f506592b5318a09432a7b |
| https://github.com/alexander-alderman-webb |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| Aug 24, 2026 | https://github.com/getsentry/sentry-python/pull/7238#event-29915948491 |
| https://github.com/alexander-alderman-webb |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| Aug 24, 2026 | https://github.com/getsentry/sentry-python/pull/7238#event-29915966139 |
| https://github.com/alexander-alderman-webb |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| Aug 24, 2026 | https://github.com/getsentry/sentry-python/pull/7238#issuecomment-5396013275 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
| https://github.com/ericapisani |
| ericapisani | https://github.com/ericapisani |
|
Aug 24, 2026
| https://github.com/getsentry/sentry-python/pull/7238#pullrequestreview-5008640876 |
|
View reviewed changes
| https://github.com/getsentry/sentry-python/pull/7238/files/39db46036f541278e16f506592b5318a09432a7b |
| ericapisani | https://github.com/ericapisani |
| https://github.com/getsentry/sentry-python/pull/7238#pullrequestreview-5008640876 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
| https://github.com/alexander-alderman-webb |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| cf426ad | https://github.com/getsentry/sentry-python/commit/cf426adb428dd693089c745f51ffadacd9cf98cf |
| Aug 24, 2026 | https://github.com/getsentry/sentry-python/pull/7238#event-29919042538 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
| https://github.com/alexander-alderman-webb |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| August 24, 2026 14:29 | https://github.com/getsentry/sentry-python/pull/7238#event-29919044763 |
| sentrivana | https://github.com/sentrivana |
|
Aug 25, 2026
| https://github.com/getsentry/sentry-python/pull/7238#ref-commit-91853f5 |
|
| https://github.com/alexander-alderman-webb |
|
| https://github.com/sentrivana |
| fix(openai): Check | https://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c |
| Response.output | https://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c |
| is a | https://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c |
| list | https://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c |
| before iterating ( | https://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c |
| #7238 | https://github.com/getsentry/sentry-python/pull/7238 |
| 91853f5 | https://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c |
| https://github.com/getsentry/sentry-python/pull/7238 |
| #7222 | https://github.com/getsentry/sentry-python/issues/7222 |
| https://github.com/apps/sentry-release-bot |
| sentry-release-bot | https://github.com/apps/sentry-release-bot |
|
Sep 8, 2026
| https://github.com/getsentry/sentry-python/pull/7238#ref-issue-5383855001 |
|
publish: getsentry/sentry-python@2.69.0
getsentry/publish#9443
| https://github.com/getsentry/publish/issues/9443 |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F7238 |
|
| https://github.com/apps/cursor |
|
cursor[bot]
| https://github.com/apps/cursor |
|
| https://github.com/getsentry/sentry-python/pull/7238/files/ce3a17458c926fff377b9c1d96ea3ea1044e7dc4 |
|
| https://github.com/apps/sentry-warden |
|
sentry-warden[bot]
| https://github.com/apps/sentry-warden |
|
| https://github.com/getsentry/sentry-python/pull/7238/files/7b867831335a97a18f8d05ff80a49187698b9b5a |
|
| https://github.com/ericapisani |
|
ericapisani
| https://github.com/ericapisani |
|
| https://github.com/getsentry/sentry-python/pull/7238/files/39db46036f541278e16f506592b5318a09432a7b |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
|
OpenAI integration raises TypeError: 'NoneType' object is not iterable into user code when response.output is None
| https://github.com/getsentry/sentry-python/issues/7222 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7238 |
|
| https://github.com/alexander-alderman-webb |
|
| https://github.com/ericapisani |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |