Skip to content

fix(eap): Handle None exception data in event forwarding#116544

Open
roggenkemper wants to merge 2 commits into
masterfrom
roggenkemper/fix/eap-exception-none
Open

fix(eap): Handle None exception data in event forwarding#116544
roggenkemper wants to merge 2 commits into
masterfrom
roggenkemper/fix/eap-exception-none

Conversation

@roggenkemper
Copy link
Copy Markdown
Member

@roggenkemper roggenkemper commented May 29, 2026

followup to #116511. Handle the case where relay normalizes malformed exception data by setting
the exception field to None rather than removing the key entirely.

.get("exception", {}) only uses the default when the key is missing — when
it exists with a None value, the subsequent .get("values", []) call throws
AttributeError: 'NoneType' object has no attribute 'get'. Using
(event_data.get("exception") or {}) handles both cases. Also filters out
None entries in the values list.

When relay normalizes malformed exception data, it sets the field to
None rather than removing the key. `.get("exception", {})` only uses
the default when the key is missing, so None.get("values") throws
AttributeError.

Fixes SENTRY-S4S2#21663

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 29, 2026
@roggenkemper roggenkemper marked this pull request as ready for review June 1, 2026 14:03
@roggenkemper roggenkemper requested a review from a team as a code owner June 1, 2026 14:03
@roggenkemper roggenkemper requested a review from a team June 1, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant