No person shall hold more than one office or position of profit under the city government, and no person shall hold any office or position of profit under the city, or any department thereof, while holding any other office or position of profit in or under the Government of the United States, of this Commonwealth, or any county, city, or other political subdivision thereof: Provided, That nothing in this act contained shall apply to the office of notary public, commissioner of deeds, or any office in the military or naval service of the United States or of this Commonwealth, and that nothing in this act shall prevent persons holding office ex officio by virtue of occupying another office or position.
53 P.S. § 12193