Skip to content

Commit 6c5715a

Browse files
authored
fix(auto_source_config): Handle when the frame is None (#85235)
Fixes [SENTRY-3NS9](https://sentry.sentry.io/issues/6299550160/) Fixes [SENTRY-3NSA](https://sentry.sentry.io/issues/6299583637/)
1 parent e3f3e61 commit 6c5715a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/sentry/issues/auto_source_code_config/stacktraces.py

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ def get_frames_to_process(
2020
for stacktrace in stacktraces:
2121
frames = stacktrace["frames"]
2222
for frame in frames:
23+
if frame is None:
24+
continue
25+
2326
if platform in PROCESS_ALL_FRAMES:
2427
frames_to_process.append(frame)
2528

tests/sentry/issues/auto_source_code_config/test_stacktraces.py

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def test_get_frames_to_process(
7777
"frames, expected",
7878
[
7979
([], []),
80+
([None], []),
8081
([{"in_app": True}], []),
8182
],
8283
)

0 commit comments

Comments
 (0)