When a vacancy shall take place in the office of mayor, a successor shall be elected for the unexpired term at the next election occurring more than thirty days after the commencement of such vacancy, unless such election should occur in the last year of said term, in which case a mayor shall be chosen by the council by a majority vote of all the members elected thereto.
53 P.S. § 12124