Nothing in this chapter shall be construed to authorize the punishment of any person who, by authority of law, may interfere to prevent or regulate an election which has been unlawfully noticed or convened, or is being, or is about to be, unlawfully conducted.
SDCL 12-26-29