Skip to content
Snippets Groups Projects
Commit b7ea1982 authored by Ben Adida's avatar Ben Adida
Browse files

prevent freezing if no voters and closed reg

parent c612b4eb
No related branches found
No related tags found
No related merge requests found
......@@ -259,6 +259,9 @@ class Election(HeliosModel):
if t.public_key == None:
issues.append("trustee %s hasn't generated a key yet" % t.name)
if self.voter_set.count() == 0 and not self.openreg:
issues.append("no voters and closed registration")
return issues
def ready_for_tallying(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment