Skip to content

Commit 6a34044

Browse files
authored
fix(detectors): Fix AttributeError in Render Blocking Asset detector (#95366)
Fixes SENTRY-FOR-SENTRY-5SYS
1 parent 49d167a commit 6a34044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/performance_issues/detectors/render_blocking_asset_span_detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _get_duration(self, item: Mapping[str, Any] | None) -> float:
124124
def _is_blocking_render(self, span: Span) -> bool:
125125
assert self.fcp is not None
126126

127-
data = span.get("data", {})
127+
data = span.get("data", {}) or {}
128128
render_blocking_status = data.get("resource.render_blocking_status")
129129
if render_blocking_status == "non-blocking":
130130
return False

0 commit comments

Comments
 (0)