From e94b9528ec14e6fba90ab0cdf8a9e4b50af86c1f Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Thu, 7 Oct 2021 11:55:19 +0000 Subject: [PATCH] show available voter types --- helios/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helios/models.py b/helios/models.py index f5e384e..fbd3f19 100644 --- a/helios/models.py +++ b/helios/models.py @@ -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 -- GitLab