Any Secretary of the Commonwealth, member of a county board of elections, chief clerk, employe, overseer, judge of election, inspector of election, clerk of election, machine inspector or custodian or deputy custodian of voting machines on whom a duty is laid by this act who shall wilfully neglect or refuse to perform his duty, shall be guilty of a misdemeanor, and, upon conviction thereof, shall be sentenced to pay a fine not exceeding one thousand ($1,000) dollars, or to undergo an imprisonment of not more than two (2) years, or both, in the discretion of the court.
25 P.S.§ 3548