Skip to content

Commit 2cfda15

Browse files
🐛 fix KeyError raised on Engineer Metrics #14737 (#14741)
1 parent d9af52d commit 2cfda15

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

dojo/metrics/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,10 @@ def _augment_series_with_accepted(series: list[list], ras_qs, *, period: str, tz
916916
)
917917

918918
for row in accepted:
919-
bucket[sev_idx[row["severity"]]] += row["cnt"]
919+
sev = row["severity"]
920+
if sev not in sev_idx:
921+
continue
922+
bucket[sev_idx[sev]] += row["cnt"]
920923

921924
bucket[5] = sum(bucket[1:])
922925

0 commit comments

Comments
 (0)