That no offense committed and no penalties or forfeitures incurred under any of the acts or ordinances hereby repealed, and before the time when such repeal shall take effect, shall be affected by the repeal, except that when any punishment, penalty or forfeiture shall have been mitigated by the provisions of the act such provisions…