Skip to content

Commit 7066f69

Browse files
committed
safeguard against experiments not being there
1 parent 0824d42 commit 7066f69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/tracing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def has_span_streaming_enabled(options):
115115
if options is None:
116116
return False
117117

118-
return options.get("_experiments").get("trace_lifecycle") == "stream"
118+
return (options.get("_experiments") or {}).get("trace_lifecycle") == "stream"
119119

120120

121121
@contextlib.contextmanager

0 commit comments

Comments
 (0)