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

show available voter types

parent ed351f4b
No related branches found
No related tags found
No related merge requests found
......@@ -773,7 +773,7 @@ class VoterFile(models.Model):
voter_id = voter_fields[1].strip()
if not voter_type in AUTH_SYSTEMS:
raise Exception("invalid voter type '%s' for voter id '%s'" % (voter_type, voter_id))
raise Exception("invalid voter type '%s' for voter id '%s', available voter types are %s" % (voter_type, voter_id, ",".join(AUTH_SYSTEMS.keys())))
# default to having email be the same as voter_id
voter_email = voter_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment