We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a42dd6e commit 57816b7Copy full SHA for 57816b7
sentry_sdk/utils.py
@@ -146,11 +146,13 @@ def iter_stacks(tb):
146
while tb is not None:
147
f_locals = getattr(tb, "f_locals", None)
148
skip = False
149
- try:
150
- if f_locals["__traceback_hide__"]:
151
- skip = True
152
- except Exception:
153
- pass
+ for flag_name in "__traceback_hide__", "__tracebackhide__":
+ try:
+ if f_locals[flag_name]:
+ skip = True
+ except Exception:
154
+ pass
155
+
156
if not skip:
157
yield tb
158
tb = tb.tb_next
0 commit comments