René's URL Explorer Experiment


Title: fix(openai): Check `Response.output` is a `list` before iterating by alexander-alderman-webb · Pull Request #7238 · getsentry/sentry-python · GitHub

Open Graph Title: fix(openai): Check `Response.output` is a `list` before iterating by alexander-alderman-webb · Pull Request #7238 · getsentry/sentry-python

X Title: fix(openai): Check `Response.output` is a `list` before iterating by alexander-alderman-webb · Pull Request #7238 · getsentry/sentry-python

Description: The official Python SDK for Sentry.io. Contribute to getsentry/sentry-python development by creating an account on GitHub.

Open Graph Description: 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 ...

X Description: 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 ...

Opengraph URL: https://github.com/getsentry/sentry-python/pull/7238

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:5a1bf524-571d-7733-bb0c-8bc11afa35f7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAD6C:476C3:42F9DA:5D3B88:6B008F17
html-safe-noncef911e7f75f1f67c4b3a95bfae1cd8687340a1494205ea36d25cdaadecc353078
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDZDOjQ3NkMzOjQyRjlEQTo1RDNCODg6NkIwMDhGMTciLCJ2aXNpdG9yX2lkIjoiMzY3ODg0MDEwODc0MTU5NDkwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5446d2c2a9e4b2a768e0d4d0f6c27198ad6128dcb72892a9de17d8126e3fd1bc
hovercard-subject-tagpull_request:4348150019
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-python/7238/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/67872a2bdb53e4c29602bb2e1b1233828fcf15ff785cac7ba1a936d21a8d168f/getsentry/sentry-python/pull/7238
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/67872a2bdb53e4c29602bb2e1b1233828fcf15ff785cac7ba1a936d21a8d168f/getsentry/sentry-python/pull/7238
og:image:altDescription 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealexander-alderman-webb
hostnamegithub.com
expected-hostnamegithub.com
Nonec710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebe616a2a6ec1c609d6e002896dff5352d5c5f28b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/7238#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F7238
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F7238
Sign uphttps://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
Reloadhttps://github.com/getsentry/sentry-python/pull/7238
Reloadhttps://github.com/getsentry/sentry-python/pull/7238
Reloadhttps://github.com/getsentry/sentry-python/pull/7238
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests41 (41)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
masterhttps://github.com/getsentry/sentry-python/tree/master
webb/openai/iterablehttps://github.com/getsentry/sentry-python/tree/webb/openai/iterable
Conversationhttps://github.com/getsentry/sentry-python/pull/7238
Commits4 (4)https://github.com/getsentry/sentry-python/pull/7238/commits
Checkshttps://github.com/getsentry/sentry-python/pull/7238/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/7238/files
fix(openai): Check Response.output is a list before iteratinghttps://github.com/getsentry/sentry-python/pull/7238#top
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
masterhttps://github.com/getsentry/sentry-python/tree/master
webb/openai/iterablehttps://github.com/getsentry/sentry-python/tree/webb/openai/iterable
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
Aug 24, 2026https://github.com/getsentry/sentry-python/pull/7238#issue-5234405803
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
#7222https://github.com/getsentry/sentry-python/issues/7222
conventional commithttps://develop.sentry.dev/engineering-practices/commit-messages/#type
CONTRIBUTING.mdhttps://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md
Sentry SDK development docshttps://develop.sentry.dev/sdk/
Discord communityhttps://discord.gg/Ww9hbqr
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
https://github.com/alexander-alderman-webb
fix(openai): Check output is a Sequence before iteratinghttps://github.com/getsentry/sentry-python/pull/7238/commits/ce3a17458c926fff377b9c1d96ea3ea1044e7dc4
ce3a174https://github.com/getsentry/sentry-python/pull/7238/commits/ce3a17458c926fff377b9c1d96ea3ea1044e7dc4
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
August 24, 2026 11:55https://github.com/getsentry/sentry-python/pull/7238#event-29910470405
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
code ownerhttps://github.com/getsentry/sentry-python/blob/e32031816394208bce58c050ff563bfde8d7b228/.github/CODEOWNERS#L1
August 24, 2026 11:55https://github.com/getsentry/sentry-python/pull/7238#event-29910470901
https://github.com/apps/cursor
cursorhttps://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
cursorhttps://github.com/apps/cursor
https://github.com/getsentry/sentry-python/pull/7238#pullrequestreview-5007530953
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aTpkMTdmOTM2MS1lYzFmLTRkMzMtOWI0Ny0wNWEzNDIzOTEwYjUiLCJlbmNyeXB0aW9uS2V5IjoiR2d4VjM0RDNxVDBNSURMa3Z1NkQyM1JkWXQ4SkNxMkdJTjdUSWd0ZjNUSSIsImJyYW5jaCI6IndlYmIvb3BlbmFpL2l0ZXJhYmxlIiwicmVwb093bmVyIjoiZ2V0c2VudHJ5IiwicmVwb05hbWUiOiJzZW50cnktcHl0aG9uIiwicHJvdmlkZXIiOiJnaXRodWIifX0
Cursor dashboardhttps://www.cursor.com/dashboard/bugbot
Cursor Bugbothttps://cursor.com/bugbot
ce3a174https://github.com/getsentry/sentry-python/commit/ce3a17458c926fff377b9c1d96ea3ea1044e7dc4
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
sentry_sdk/integrations/openai.pyhttps://github.com/getsentry/sentry-python/pull/7238/files/ce3a17458c926fff377b9c1d96ea3ea1044e7dc4#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
https://github.com/alexander-alderman-webb
add isinstance to other branchhttps://github.com/getsentry/sentry-python/pull/7238/commits/e8e89d472009f5957f98448e87bcbfda71b5abb1
e8e89d4https://github.com/getsentry/sentry-python/pull/7238/commits/e8e89d472009f5957f98448e87bcbfda71b5abb1
https://github.com/apps/sentry-warden
sentry-wardenhttps://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.pyhttps://github.com/getsentry/sentry-python/pull/7238/files/e8e89d472009f5957f98448e87bcbfda71b5abb1#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 24, 2026https://github.com/getsentry/sentry-python/pull/7238#issuecomment-5395025318
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
Codecov Actionhttps://github.com/getsentry/codecov-action
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
https://github.com/alexander-alderman-webb
add isinstance checkhttps://github.com/getsentry/sentry-python/pull/7238/commits/7b867831335a97a18f8d05ff80a49187698b9b5a
7b86783https://github.com/getsentry/sentry-python/pull/7238/commits/7b867831335a97a18f8d05ff80a49187698b9b5a
https://github.com/apps/sentry-warden
sentry-wardenhttps://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.pyhttps://github.com/getsentry/sentry-python/pull/7238/files/7b867831335a97a18f8d05ff80a49187698b9b5a#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
https://github.com/ericapisani
ericapisanihttps://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
ericapisanihttps://github.com/ericapisani
https://github.com/getsentry/sentry-python/pull/7238#pullrequestreview-5008095603
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
Aug 24, 2026https://github.com/getsentry/sentry-python/pull/7238#issuecomment-5395898684
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
https://github.com/alexander-alderman-webb
check against list instead of Sequencehttps://github.com/getsentry/sentry-python/pull/7238/commits/39db46036f541278e16f506592b5318a09432a7b
39db460https://github.com/getsentry/sentry-python/pull/7238/commits/39db46036f541278e16f506592b5318a09432a7b
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
Aug 24, 2026https://github.com/getsentry/sentry-python/pull/7238#event-29915948491
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
Aug 24, 2026https://github.com/getsentry/sentry-python/pull/7238#event-29915966139
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
Aug 24, 2026https://github.com/getsentry/sentry-python/pull/7238#issuecomment-5396013275
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
https://github.com/ericapisani
ericapisanihttps://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
ericapisanihttps://github.com/ericapisani
https://github.com/getsentry/sentry-python/pull/7238#pullrequestreview-5008640876
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
cf426adhttps://github.com/getsentry/sentry-python/commit/cf426adb428dd693089c745f51ffadacd9cf98cf
Aug 24, 2026https://github.com/getsentry/sentry-python/pull/7238#event-29919042538
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/7238
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
August 24, 2026 14:29https://github.com/getsentry/sentry-python/pull/7238#event-29919044763
sentrivanahttps://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): Checkhttps://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c
Response.outputhttps://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c
is ahttps://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c
listhttps://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c
before iterating (https://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c
#7238https://github.com/getsentry/sentry-python/pull/7238
91853f5https://github.com/getsentry/sentry-python/commit/91853f576198d73b37bc8ab582637216440bc32c
https://github.com/getsentry/sentry-python/pull/7238
#7222https://github.com/getsentry/sentry-python/issues/7222
https://github.com/apps/sentry-release-bot
sentry-release-bothttps://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 freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://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 pagehttps://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 pagehttps://github.com/getsentry/sentry-python/pull/7238
https://github.com/alexander-alderman-webb
https://github.com/ericapisani
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.