The proceeds of any bonds issued by a municipality shall be placed in the municipal treasury or depository, if there be one, as a special fund, and shall be used for no other purpose than that for which such bonds were authorized to be issued. If the governing authorities of such municipality, or any member thereof, or any other officer, shall wilfully divert, or aid or assist in diverting any such fund, or any part thereof, to any purpose other than that for which such bonds were authorized to be issued, then such person shall be guilty of a felony and, upon conviction, shall be punished by imprisonment in the state penitentiary for a term not exceeding five years and, in addition, he shall be liable personally and on his official bond for the amount so diverted. Any member of such governing authorities may escape the penalty provided for above by requesting and having his vote recorded in the negative on any illegal diversion of the proceeds of such bonds.