A drug dealer was caught with a cannabis plant two months after being arrested, a court has been told.
Police arrested Anthony Shore, of Downs View, Bude, last August when they went to his flat to investigate a complaint of loud music and found drugs.
When officers returned in October, the 27-year-old had a cannabis plant growing on his window sill.
Truro Crown Court Recorder Michael Hubbard QC sentenced Shore to nine months in jail, suspended for a year.
Prosecutor Iain Leadbetter told the court when Shore was first arrested, he admitted he had been dealing drugs for two months "just to keep the money coming in".
Officers took possession of £1,140 in cash and 126.6g of cannabis with a street value of about £715.
When police returned to Shore's property on 29 October they found one cannabis plant growing on his window sill and 5.6g of the drug.
Shore admitted possession and possession with intent to supply.
Defending, Christopher Nicholls said Shore had now disassociated himself from former dealers and his parents had paid off about £2,000 he owed them.
"He was naive as to the seriousness of his criminality," Mr Nicholls said.
Sentencing Shore, the recorder told him: "You are so close to going straight to jail."
In addition to the suspended sentence with supervision, Shore was also given 40 hours of unpaid community work.
The recorder ordered the confiscation of the cash and the destruction of the drugs.