(a) Any person who attempts to commit any offense defined in this article or in the Drug Control Act (§ 54.1-3400 et seq.) which is a felony shall be imprisoned for not less than one nor more than ten years; provided, however, that any person convicted of attempting to commit a felony for which a lesser punishment may be imposed may be punished according to such lesser penalty.
(b) Any person who attempts to commit any offense defined in this article or in the Drug Control Act which is a misdemeanor shall be guilty of a Class 2 misdemeanor; provided, however, that any person convicted of attempting to commit a misdemeanor for which a lesser punishment may be imposed may be punished according to such lesser penalty.
Code 1950, § 54-524.104:1; 1972, c. 798; 1973, c. 447; 1975, cc. 14, 15; 1979, c. 435.