For any primary or election, if the city or town clerk determines in writing that there is a deficiency in the number of required election officers within the 6 weeks preceding the primary or election, the appointing authority may appoint election officers without regard to political party membership, voter status, residence in the city or town or inclusion on a list filed by a political party committee pursuant to sections 11B and 12. If the position of warden, clerk or inspector, or deputy of any such officer, if any, is vacant within the 3 weeks preceding any primary or election, the city or town clerk may fill the vacancy by appointing a competent person willing to serve, without regard to political party membership, voter status, residence in the city or town or inclusion on a list filed by a political party committee pursuant to said sections 11B and 12.
Mass. Gen. Laws ch. 54, § 14