Any commissioner of election, or any other officer or person acting as such or performing election duty, who shall wilfully or knowingly refuse or fail to perform the duties herein required of him, or who shall violate any provision of this ordinance, shall be guilty of a misdemeanor and be subject to a fine of not less than twenty-five nor more than one hundred dollars, or to imprisonment in the county jail not less than ten nor more than ninety days, or both, at the discretion of the court.