Crimes and Punishments, Art. 1904. That any person in this state having, carrying or procuring from another person any dirk, dirk-knife, bowie-knife, sword, sword-cane, pistol, gun or other deadly weapon, who shall, in the presence of two or more persons, draw or exhibit any of said deadly weapons in a rude, angry and threatening manner, not in necessary self-defense, or who shall, in any manner, unlawfully use the same, in any fight or quarrel, the person or persons so offending, upon conviction thereof in any criminal court in any county of this state, shall be fined in any sum not less than one hundred, nor more than five hundred dollars, or imprisonment in the county jail not less than one nor more than six months, at the discretion of the court, or both such fine and imprisonment, together with the costs of prosecution; which said costs shall, in all cases be computed and collected in the same manner as costs in civil cases. . . provided, nevertheless, that no sheriff, deputy sheriff, marshal, constable or other peace officer, shall be held to answer under the provisions of this act, for drawing or exhibiting any of the weapons herein-before mentioned, while in the lawful discharge of his or their duties. . .