A young man received a "wake-up call" after gardai raided his home for drugs and he hasn't used cannabis since, a court heard.
Francis Kelly (27) was shocked when gardai came into his home.
The defendant, of Donomore Avenue in Tallaght, admitted before Tallaght District Court to possession of cannabis.
The incident, contrary to the misuse of drugs act, took place at his home in Tallaght on January 14 last year.
Garda Michelle McGuinness said gardai obtained a search warrant and conducted a search of the defendant's home, during which Gda McGuinness said cannabis with a street value of €318 was found.
Gda McGuinnesss said Kelly co-operated with gardai and made admissions at the scene. He has two previous convictions, though none for drugs.
Defence solicitor Jeremiah Breen said that Kelly hasn't used cannabis since this incident.
Mr Breen said that the defendant was shocked when gardai raided his home, and "it woke him up, to say the least".
Asking the judge to leave Kelly without a conviction, Mr Breen said there was no suggestion Kelly was supplying or selling cannabis.
Judge Patricia McNamara convicted and fined Kelly €175.