From 323f7467821204363a2b23abd3f0db3dca9209da Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Fri, 12 Jan 2024 13:49:59 +0100 Subject: [PATCH] Fix `KeyError` accessing `unwind_status` (#63101) Fixes SENTRY-2DP3 --- src/sentry/lang/native/sources.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sentry/lang/native/sources.py b/src/sentry/lang/native/sources.py index 3507515d6d28f2..5e12f5885a290f 100644 --- a/src/sentry/lang/native/sources.py +++ b/src/sentry/lang/native/sources.py @@ -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