(a) Whenever, in the Codified Ordinances or in any ordinance of the municipality, any act is prohibited or is made or declared to be unlawful or an offense or a misdemeanor, or whenever the doing of any act is required or the failure to do any act is declared to be unlawful, where no specific penalty is otherwise provided, whoever violates any such provision shall be punished by a fine not exceeding five hundred dollars ($500), a term of imprisonment not exceeding six months, or both. A separate offense shall be deemed committed each day during or on which a violation continues or occurs.
(b) The failure of any officer or employee of the municipality to perform any official duty imposed by the Codified Ordinances shall not subject the officer or employee to the penalty imposed for a violation unless a penalty is specifically provided for such failure.