If any officer or deputy holding any office or post mentioned in KRS 61.010 is convicted of bribery, forgery, perjury or any felony, by a court of record in or out of this state, his office or post shall be vacated by such conviction, and if a pardon is afterward granted to him it shall not avoid the forfeiture.