BOOK I-GENERAL PART
TITLE II-THE ACT
CHAPTER II-FORMS OF CRIME
Article 24
Desistance
1. Attempt ceases to be punishable if the agent voluntarily desists from proceeding in the execution of the crime, or prevents its consummation, or, notwithstanding its consummation, prevents the verification of the result not included in the type of crime.
2. When the consummation or the verification of the result are prevented by an act independent of the desistant’s behaviour, the attempt is not punishable if he has made serious efforts to prevent the one and the other.
EDIT.