The repeal of a law by this Code shall not affect any right accrued or established, or any liability or penalty incurred, under the provisions of such law, prior to the repeal thereof.