A couple in a city centre flat were woken by Lee Kenneth Moore, 41, “moaning and groaning” in the living room, said Leila Taleb, prosecuting.
He had put some recycling bins against their wall and tried to climb in through the “very small” living room window, which they had left partially open.
But his shoe laces had caught on the window’s locking mechanism.
YOU’LL FIND MORE ON THIS STORY AND OTHERS AT www.yorkpress.co.uk OR PICK UP YOUR COPY OF THE NEWSPAPER ITSELF AVAILABLE SIX DAYS A WEEK AT YOUR LOCAL NEWSAGENT

Two Ridings Community Foundation Awards More Than £145,000 to York Charities
The Yorkshire Craft Festival Returns
'Why York's famous Shambles should be renamed Diagon Alley from Harry Potter'
Popular York restaurant gets one-star food hygiene rating after inspection
Club 55 - councillors renew licence for York strip club
New care home set to open in York
New padel court proposed to meet rising demand in North Yorkshire
The Full Monty Tour is Coming to Grand Opera House in York


