The repeal of a statute does not affect any right which accrued, any duty imposed, any penalty incurred, nor any proceeding commenced, under or by virtue of the statute repealed.