A federal judge has sentenced a witness who refused to testify in a sex trafficking case to 15 months in prison.

Abdullahi Farah, a Somali refugee and former gang member, repeatedly refused to testify, saying he is afraid for himself and for his family. He was convicted in April of two counts of contempt of court and obstruction of a child sex trafficking case.

Farah had originally faced as much as 20 years in prison for the obstruction conviction, but his attorney, James Mackler, argued that the lower sentence was more in keeping with other cases in which witnesses have refused to testify.

Mackler said Farah has already served about nine months so could soon be eligible for release.