Democratic Rep. Kathleen Rice announced Tuesday she would pass on running to become New York’s attorney general after Eric Schneiderman resigned.

Rice was encouraged to run by others but ultimately the legal constraints prevented her from running, she said in a statement.

“[G]iven the timing of Eric Schneiderman’s resignation and the current state law prohibiting candidates from seeking two offices simultaneously, I have determined that I cannot run for Attorney General at this time,” she said.

Rather, Rice said she would run for a third term in Congress.

Schneiderman resigned after a report in the New Yorker featured multiple women saying he physically abused them. His resignation opened up the attorney general spot for which two sitting House members were being whispered about.