Skip to content

Commit

Permalink
build_parameters.py: require at least one commit from html parsing
Browse files Browse the repository at this point in the history
prevents returning an empty set of commits which can make the Wiki's parameters page break
  • Loading branch information
peterbarker committed Jan 29, 2025
1 parent 185fe55 commit a3d5bf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ def fetch_commit_hash(version_link, board, file):
for i in commits_and_codes:
if commits_and_codes[i][0] != 'error':
commite_and_codes_cleanned[i] = commits_and_codes[i]
if len(commite_and_codes_cleanned) == 0:
error("Expected at least one commit")
return commite_and_codes_cleanned


Expand Down

0 comments on commit a3d5bf1

Please sign in to comment.