Fixed small bug where bench script crashes on error

This commit is contained in:
Christopher Cerne 2020-12-09 11:12:51 -05:00
parent 389cc064ea
commit 89138d7436

View File

@ -452,7 +452,7 @@ else:
if "errors" in rubric[test]:
errors = sum(data[test]["summary"]["errors"].values())
if errors > 0:
category = max(category - rubric[test], 0)
category = max(category - rubric[test]["errors"], 0)
print("%s: %d/4" % (test, category))
score += category