CIC
Canon 1347
Book VI. Penal sanctions in the Church
Penal law
Code of Canon Law
English§ 1. A censure cannot validly be imposed unless the offender has beforehand received at least one warning to purge the contempt, and has been allowed suitable time to do so.
§ 2. The offender is said to have purged the contempt if he or she has truly repented of the offence and has made suitable reparation for the scandal and harm, or at least seriously promised to make it.