(CNN) A man in Anchorage, Alaska, pleaded guilty to assaulting a woman who said he strangled her unconscious and sexually assaulted her.

The man then walked out of court with no prison sentence.

"But I would like the gentleman to be on notice that this is his one pass," prosecutor Andrew Grannik said in court Wednesday, CNN affiliate KTVA reported. "It's not really a pass, but given the conduct, one might consider that it is."

Justin Schneider, 34, was accused of kidnapping and assaulting the woman on August 15, 2017, strangling her until she lost consciousness and then masturbating on her, court documents show.

Grannik said Schneider had lost his job as an air traffic controller for the federal government as a result of the case. Grannik said that was a "life sentence," according to KTVA.

Read More