Registered voters shall in all cases, except treason, felony, or breach of the peace, be privileged from arrest during the attendance at elections and while going to and returning from the same. No registered voter shall be obliged to do military duty on election day except in time of war and public danger.