Skip to content

Commit

Permalink
Make it not die
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens authored and felipesanches committed Feb 2, 2024
1 parent 7f28eca commit 0b9860f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Lib/fontbakery/reporters/badge.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ def getdoc(self):
if check["result"] == "ERROR":
error_state = True
break
out_of += severity
if check["result"] == "PASS":
score += severity
if severity is not None:
out_of += severity
if check["result"] == "PASS":
score += severity
total_score += score
total_total += out_of
sections[key] = self.make_section(key, error_state, score, out_of)
Expand Down

0 comments on commit 0b9860f

Please sign in to comment.