Skip to content

Commit f13f8c7

Browse files
authored
fix(detectors): Fix type error in report_metrics_for_detectors (#95386)
Fixes SENTRY-FOR-SENTRY-600M
1 parent ec32992 commit f13f8c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sentry/performance_issues/performance_detection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ def report_metrics_for_detectors(
532532

533533
tags = event.get("tags", [])
534534
browser_name = next(
535-
(tag[1] for tag in tags if tag[0] == "browser.name" and len(tag) == 2), None
535+
(tag[1] for tag in tags if tag is not None and tag[0] == "browser.name" and len(tag) == 2),
536+
None,
536537
)
537538
allowed_browser_name = "Other"
538539
if browser_name in [

0 commit comments

Comments
 (0)