diff --git a/server/code/app/index/review_brief_build.py b/server/code/app/index/review_brief_build.py index e7e66eb24a..70f937c3ab 100644 --- a/server/code/app/index/review_brief_build.py +++ b/server/code/app/index/review_brief_build.py @@ -953,10 +953,9 @@ async def _history_section( left = 0 # functions an op refused to read: a cap # a name that resolved to another file's definition reads as unknown results = [ - r - if isinstance(r, BaseException) - or str((r.get("symbol") or {}).get("path") or "") in ("", path) - else {"verdict": "unknown"} + {"verdict": "unknown"} + if isinstance(r, dict) and str((r.get("symbol") or {}).get("path") or "") not in ("", path) + else r for (_, path), r in zip(defs, results, strict=True) ] listed = any(not isinstance(r, BaseException) and r.get("regression_prs") for r in results)