X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/bbd877082e64db53c96467431cb766c75f14c96c..0f9de7a83f46b302d82dbeb66def7f12ae15077a:/app/models/selectricity_service.rb diff --git a/app/models/selectricity_service.rb b/app/models/selectricity_service.rb index 4075f64..7da46e1 100644 --- a/app/models/selectricity_service.rb +++ b/app/models/selectricity_service.rb @@ -21,6 +21,8 @@ class SelectricityService < ActionWebService::Base voter.save! voter.vote.confirm! voter.save! + else + raise ArgumentError.new "Cannot find election #{election_name}" end end def quickvote_candidate_ids_to_names(shortname, id_list)