diff --git a/tabbycat/results/result.py b/tabbycat/results/result.py index 18470d1350d..d3ab76cc291 100644 --- a/tabbycat/results/result.py +++ b/tabbycat/results/result.py @@ -927,7 +927,12 @@ def save(self): defaults=self.get_defaults_fields('speakerscorebyadj', adj, side, pos)) def set_score(self, adjudicator, side, position, score): - self.scoresheets[adjudicator].set_score(side, position, score) + try: + self.scoresheets[adjudicator].set_score(side, position, score) + except KeyError: + logger.exception("Tried to set score by adjudicator %s, but this adjudicator " + "doesn't have a scoresheet.", adjudicator) + return # -------------------------------------------------------------------------- # Model fields