A policeman investigating an assault on a woman ended up tasering her attacker through a gap in the door.
David Nixon (27) had earlier grabbed his former partner Sian May by the throat in Nene Meadows, Sutton Bridge, and she left the house and called police.
Marie Stace, prosecuting, said PC Matthew Breathwick arrived at the address on August 4 to be told by Nixon: “She’s not coming in here and neither are you.”
After some time, the officer pepper sprayed Nixon with no effect, employed his taser – which missed – but then ended up with his foot in the door with Nixon trying to close the door on his foot.
Miss Stace said the officer used his taser through the gap and it worked that time.
Nixon, of Granville Terrace, Sutton Bridge, pleaded guilty at a previous hearing to assaulting Ms May and PC Breathwick.
On Thursday he was sentenced to a year long community order with supervision by probation and ordered to pay £85 costs and a £60 victim surcharge.
Miss Stace said Nixon told police he should have walked away from the first incident and should not have acted in the way he did.
He apologised for hurting the officer who was a “nice chap” only doing his job.