Skip to content

Commit 5777ec1

Browse files
authored
Skip empty bug IDs from Treeherder API results (#5036)
1 parent 43a36e2 commit 5777ec1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/generate_landings_risk_report.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,10 @@ def go(self, days: int) -> None:
839839

840840
test_infos = self.retrieve_test_info(days)
841841
test_info_bugs: list[int] = [
842-
bug["id"] for test_info in test_infos.values() for bug in test_info["bugs"]
842+
bug["id"]
843+
for test_info in test_infos.values()
844+
for bug in test_info["bugs"]
845+
if bug["id"] is not None
843846
]
844847

845848
crash_signatures = {

0 commit comments

Comments
 (0)