(1) imprisonment for not more than 25 years, if the offense attempted is punishable by imprisonment for life; or
(2) in any other case, imprisonment for not more than one-half of the maximum term, or fine of not more than one-half of the maximum sum prescribed by law for the commission of the offense attempted, or by both such fine and imprisonment.