Skip to content

Commit

Permalink
Fix KeyError accessing unwind_status (#63101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Jan 12, 2024
1 parent ca436be commit 323f746
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sentry/lang/native/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,10 @@ def capture_apple_symbol_stats(json):
symx_has_symbol = 0

for module in json.get("modules") or ():
if module["debug_status"] == "unused" and module["unwind_status"] == "unused":
if (
module.get("debug_status", "unused") == "unused"
and module.get("unwind_status", "unused") == "unused"
):
continue
if module["type"] != "macho":
continue
Expand Down

0 comments on commit 323f746

Please sign in to comment.