diff --git a/openslides/poll/models.py b/openslides/poll/models.py index e24494aad..a5beac578 100644 --- a/openslides/poll/models.py +++ b/openslides/poll/models.py @@ -82,7 +82,10 @@ class CountVotesCast(models.Model): return print_value(self.votescast) def percent_base(self): - return 100 / float(self.votescast) + try: + return 100 / float(self.votescast) + except TypeError: + return 0 class Meta: abstract = True