A drug dealer who claimed the only reason he got caught was because he was "too nice" has been sent to prison for 15 months.
Jamie Hunter said he had only become involved to help a friend who was supplying him with cannabis and now regretted the role he had played.
But Sheriff William Wood jailed him after pointing out he had £10,000 worth of cannabis in his home along with paraphernalia including scales for weighing the drug.
He also pointed out that Hunter had clearly been dealing the drug for months and had a "menu" on his phone of the types of cannabis he was able to supply.
Sheriff Wood said: "There is nothing like a prosecution to generate contrition. You didn't think about that when you were concerned in the supply of drugs for six months.
"This was not a one-off. It may well be that you felt obliged to look after someone else's stash but it goes beyond that.
"Various phones were found with a menu listing various types of cannabis.
"This was a very sophisticated operation in the supply of a controlled substance. The amount recovered was potentially worth £10,000.
"Given the extent and duration of the supply only a custodial sentence is appropriate."
Hunter, 32, Sidlaw Park, St Madoes, admitted being concerned in the supply of cannabis at his home over a period lasting several months into early 2020.
Solicitor Louisa Wade, defending, told Perth Sheriff Court: "He was a little naive about what he got himself into. I don't think he fully realised the seriousness of it.
"He had little financial gain from his involvement in this project. He was looking for cheap ways to fuel his habit. It went from bad to worse. He was in a pickle.
"He wasn't somebody who was sitting pretty. He was involved in having enough cannabis to smoke because his addiction was spiralling out of control and the chap providing it was using my client as a safe house.
"The day before his home was raided the chap dropped off a suitcase with 957 grams of cannabis which is quite a quantity.
"My client didn't know how much there was.
"He was in deep by this point. There was equipment and this man was coming back and forwards.
"My client got involved in helping. He was too nice and too naive."
She said the dealer who supplied him with nearly a kilo of cannabis had a poor grasp of English, so Hunter had helped him by writing out the menu of drugs.
Don't miss the latest Scottish crime and courts news from the Daily Record. Sign up to our Criminal Record newsletter here .