If any manager, clerk, or any other officer whatever, assisting or engaged in conducting any election, or charged with any duty in reference to any election, shall designedly omit to do any official act required by law, or designedly do any illegal act in relation to any election, by which act or omission the votes taken at any such election in any district shall be lost, or the electors thereof shall be deprived of their suffrage at such election, or shall designedly do any act which shall render such election void, or shall be guilty of any corrupt conduct or partiality in his official capacity at such election, he shall, upon conviction, be imprisoned, in the county jail not more than one (1) year, or be fined not more than Three Thousand Dollars ($3,000.00), or both.