A person who commits or attempts to commit an act of terrorism commits a class “B” felony. However, notwithstanding section 902.9, subsection 1, paragraph “b”, the maximum sentence for a person convicted under this section shall be a period of confinement of not more than fifty years.