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