A jobless man was excused jail after police found him leaving a loft where cannabis plants were growing.
A court heard that Glynn Platts had a mobile phone containing messages linked to drug dealing when he was arrested during the raid in Hartington Road, Chesterfield.
One asked for “a Henry,” the slang for an eighth of an ounce of cannabis, said Esther Harrison, prosecuting.
A four-month prison term, suspended for 18 months, was imposed on Platts, 26, of Honeysuckle Road, Hasland. He admitted having a Class B drug with intent.
He must carry out 200 hours of unpaid work and was told he could have been sent straight to prison. Judge James Sampson told him: “Think yourself very lucky indeed.”
Miss Harrison said another man had also been taken to court over the drug discovery which was made on March 6. Officers found seven cannabis plants in the loft of the home where Platts had been living at the time.
The court heard that cannabis was in four plastic bags and could have raised £720. A total of £245 cash was also discovered.
Miss Harrison told Derby Crown Court: “The man shouted to the defendant that the ‘cops are here’ and the defendant came down from the loft.”
Gregor Purcell, mitigating, said Platts had completed 150 hours of unpaid work for a previous offence and could have been sent to jail for breaking an earlier order. He added Platts understood he was close to imprisonment.