From d30bdd4cb3df68c1e7a36312a1ac5c672311796d Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 24 Jan 2019 10:22:14 -0800 Subject: [PATCH] Fix board info script to skip removed boards. --- tools/build_board_info.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/build_board_info.py b/tools/build_board_info.py index e8c4d963c3..30d7c710b7 100644 --- a/tools/build_board_info.py +++ b/tools/build_board_info.py @@ -162,7 +162,10 @@ def update_downloads(boards, release): assets = response.json()["assets"] for asset in assets: - boards[asset["name"].split("-")[2]]["download_count"] += asset["download_count"] + board_name = asset["name"].split("-")[2] + if board_name not in boards: + continue + boards[board_name]["download_count"] += asset["download_count"] def print_active_user():