Any person who carries a rifle or shotgun walking cane shall, on conviction, be fined not less than $500.00 nor more than $1,000.00, and be imprisoned in the penitentiary not less than two years.