GENERAL PART
Chapter 4
Attempt and Complicity
§ 22
Attempts shall not be punishable if, voluntarily and not because of fortuitous obstacles to the completion of the offence or to the fulfillment of his purpose, the perpetrator desisted from implementing his intention and prevented the offence’s completion, or took steps which would have prevented its completion had it not, without his knowledge, already been unsuccessful or averted in some other way.
EDIT.