A schoolboy fled in fear from a man walking three large dogs who hurled racist abuse at him.
The 15-year-old was upset after Adam Haggarty approached him, labelled him a ‘P**i’ and made rude gestures towards him, a court heard.
The boy had a fear of the dogs, which had to be brought under control by police called to the scene with the use of electric shields.
Haggarty, of Holme Park Court in Berry Brow, pleaded guilty to racially-aggravated harassment.
He also admitted to resisting a police constable in his duty as well as two additional charges of shop theft.
The incident involving the teenager happened in Golcar on March 15.
The boy was walking up Scar Lane to meet a family member when he saw Haggarty, 20.
Vanessa Jones, prosecuting, said: “He heard him say: ‘You P**I’ and then began making rude gestures towards him.
“The complainant didn’t understand why he was doing that.
“He heard the defendant swearing and then noticed the three large dogs.
“The boy was frightened and ran off into a nearby takeaway.”
The court heard that he saw Haggarty and another male enter a shop, still making rude gestures towards him.
Mrs Jones added: “He said he was very scared by this incident and he found the remark to be racist.”
Haggarty had hold of one of the dogs while the other two were running around at the time of the incident.
Magistrates were told that a number of police officers attended, with electric shields which were used to control the animals.
Haggarty got upset at this and was obstructive during his arrest, the court heard.
Mrs Jones said: “Mr Haggarty began to get agitated, he didn’t accept he’d done anything wrong and wanted to take the dogs home.
“The officers tried to put the handcuffs on him and he was struggling violently and screaming.”
Haggarty pleaded guilty to the thefts of two bottles of whisky from Milnsbridge Co-op on February 28 and March 4.
Bob Carr, mitigating, said that his client was not a racist.
He said: “He went to a mixed race school where a number of Asian boys were his close friends.
“It’s a mixed race society, especially in Huddersfield,
“There’s no inherent racism. It’s just a word he utilised and he didn’t mean it as an insult,”
Magistrates ordered Haggarty to complete 240 hours of unpaid work as well as paying £38 compensation to the shop, £150 costs and £60 victim surcharge.