A person convicted of violating section 365.37, a provision regulating bid requirements of towns, must leave office.