Skip to content

Commit b032231

Browse files
authored
fix(derived_code_mappings): Fix (#86109)
Fix for regression #86026.
1 parent 1f728d6 commit b032231

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: src/sentry/issues/auto_source_code_config/stacktraces.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ def get_stacktraces(data: NodeData | dict[str, Any]) -> list[dict[str, Any]]:
3737
if exceptions:
3838
return [e["stacktrace"] for e in exceptions if get_path(e, "stacktrace", "frames")]
3939

40-
# This section is only used as part of the tests
41-
# Ideally, we should fix the tests to pass the correct data
42-
return [data["stacktrace"]]
40+
stacktrace = data.get("stacktrace")
41+
if stacktrace and stacktrace.get("frames"):
42+
logger.warning("Investigate if we use this code path in production.")
43+
return [stacktrace]
44+
45+
return []

0 commit comments

Comments
 (0)