A man with mental health problems called police when he felt suicidal but ended up hurting two constables.
Jason McKenzie (29), of Roman Bank Crosses, Long Sutton, admitted assaulting PC Steven Kirtley and PC Scott McCraig when they answered his call for help on November 19.
Paul Wood, prosecuting, said McKenzie would not allow police inside his house and PC Kirtley sat with him in the back of a car writing notes.
At one point McKenzie told PC Kirtley to stop writing and get him away from the place where he was.
McKenzie then launched himself at the officer, forcing him to get out of the car for his own safety.
During a scuffle, McKenzie, put the officer in a headlock. The officer drew his taser, but McKenzie tried to grab it from him.
Mr Wood said the disorder came to an end when the officer fired his taser into McKenzie’s chest.
The court heard PC Kirtley was left with scratches on his arms and an injured finger and PC McCaig suffered discomfort to his right elbow.
Solicitor Julian Sheen said McKenzie tried to contact a mental health unit that day, but that failed, and he called police.
Mr Sheen said: “This matter came about because of the state he was in. He hugely regrets it and it has been deeply troubling him since the incident last month.”
Magistrates on Thursday sentenced McKenzie to nine months supervision by probation. He must pay £85 costs and a £60 victim surcharge.