Section 3

Any Court which conviets an offender of an offence under section 379 or section 380 of the Indian Penal Code or of any offence under any other section of that Code or under any other law for the time being in force punishable with imprisonment for not more than two years, may, if no previous conviction is proved against him, and if it is of opinion that having regard to his age, character, antecedents, or physical or mental condition and to the trivial nature of the offence or to the extenuating circumstances unider which the offence was committed, it is expedient so to do, release him after due admonition, instead of sentencing him to any punishment.