diff --git a/judge/contest_format/ecoo.py b/judge/contest_format/ecoo.py index 0451c74..007498c 100644 --- a/judge/contest_format/ecoo.py +++ b/judge/contest_format/ecoo.py @@ -118,7 +118,7 @@ class ECOOContestFormat(DefaultContestFormat): format_html( " +{bonus}", bonus=floatformat(format_data["bonus"]) ) - if format_data["bonus"] + if format_data.get("bonus") else "" )