A Saskatchewan substitute teacher who had sex with her former student was found not guilty of sexual exploitation.

Erin Osmond, 29, admitted to having sex with a then-16-year-old boy on four occasions in 2013.

While 16 is the legal age of consent, it is still considered sexual exploitation if an adult has sex with someone between the ages of 16 and 18 over whom they hold a position of trust or authority.

The defence argued in court that because Osmond was no longer working at the boy’s high school in Watrous, Sask., when they had sex, it was not exploitative.

The judge agreed and found her not guilty, the Leader-Post reports.

During the trial, more than 125 pages of text messages between the two were entered into evidence.

Both the teacher and the boy testified they exchanged innocent texts at first, which evolved into flirtatious phone calls, then a classroom kiss on the last day of her contract and eventually sexual intercourse.