Commit 2734d8d7 authored by Stephane Glondu's avatar Stephane Glondu Committed by Stéphane Glondu

Assume there is no ballots when ballots.jsons is missing

parent aab83911
Pipeline #106198 passed with stages
in 24 minutes and 51 seconds
......@@ -151,7 +151,7 @@ module Make (P : PARSED_PARAMS) : S = struct
let encrypted_tally =
lazy (
match Lazy.force ballots with
| None -> failwith "ballots.jsons is missing"
| None -> E.neutral_ciphertext (), 0
| Some ballots ->
List.fold_left (fun accu (b, _) ->
E.combine_ciphertexts (E.extract_ciphertext b) accu
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment