Every person who attempts to commit an offense against the ordinances of the town and does any act toward the commission of such offense in such attempt, but who fails or is prevented or intercepted in the perpetration thereof, is guilty of an offense and shall be punished in the manner prescribed for the attempted offense itself.
(Prior Code, § 6-5-2) Penalty, see § 130.99