(a) Unless otherwise provided by law and except as provided in subsection (b) of this section, a person who is convicted of being an accessory after the fact to a felony is guilty of a felony and on conviction is subject to the lesser of:
(1) imprisonment not exceeding 5 years; or
(2) a penalty not exceeding the maximum penalty provided by law for committing the underlying felony.
(b) (1) A person who is convicted of being an accessory after the fact to murder in the first degree is guilty of a felony and on conviction is subject to imprisonment not exceeding 10 years.
(2) A person who is convicted of being an accessory after the fact to murder in the second degree is guilty of a felony and on conviction is subject to imprisonment not exceeding 10 years.