Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

BISMARCK, N.D. — A North Dakota judge on Wednesday accepted a plea agreement that spares former Green Party presidential candidate Jill Stein any jail time for protesting the Dakota Access oil pipeline nearly a year ago.

Judge Gail Hagerty accepted a plea deal in which Stein pleaded guilty to misdemeanor criminal mischief and prosecutors dropped a misdemeanor criminal trespass charge.

Stein will be on unsupervised probation for about six months and must pay $250 in fees. She had faced a maximum punishment of two months in jail and $3,000 in fines.

Jill Stein prepares to spray paint on the blade of a bulldozer at a Dakota Access Pipeline protest on September 6, 2016 in North Dakota. file Alicia Ewen / KX News via AP file

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Stein and her attorney did not respond to phone and email messages seeking comment. Morton County Assistant State's Attorney Brian Grosinger also did not respond to messages seeking comment on why prosecutors chose not to take the case to trial.

Stein was charged for spray-painting a bulldozer at a construction site last September. She told The Associated Press in March that it was "very problematic to have this hanging over my head" and that she wanted the case resolved. She also said that she was willing to go jail but that's "not my preference, obviously."

Related: Appeals Court Refuses to Stop Oil in Dakota Access Pipeline

Stein's running mate, Ajamu Baraka, who faced similar charges, got the same deal Wednesday.

The $3.8 billion pipeline built by Texas-based Energy Transfer Partners on June 1 began moving North Dakota oil through South Dakota and Iowa to a distribution point in Illinois, though American Indian tribes who fear environmental harm are still fighting the project in court. Protests in North Dakota by tribes and environmental groups between last August and this past February resulted in 761 arrests.

Stein was at a pipeline construction site in southern North Dakota on Sept. 6, 2016, where authorities said equipment was vandalized. She issued a statement at the time admitting to spray-painting the words "I approve this message" on the blade of a bulldozer to protest that it "had been used to destroy sacred burial sites of the Standing Rock Sioux."

Jill Stein attends the Young Turks Town-Hall wIth Green Party Presidential Candidate Jill Stein at YouTube Space LA on October 21, 2016 in Los Angeles. file Gabriel Olsen / Getty Images file

A state judge issued an arrest warrant for Stein the next day, but court proceedings were never scheduled. Grosinger has not responded to several requests for comment as to why.

Another high-profile pipeline opponent arrested in North Dakota, Hollywood actress Shailene Woodley, in March agreed to a plea deal with prosecutors that kept her out of jail. She also faced misdemeanor charges that carried the same potential punishment as Stein faced.

Related: Authorities Drop 33 Cases Against Dakota Access Protesters

Stein said in March that she doesn't view the pipeline's completion as a defeat because Dakota Access opponents "connected the dots between the struggle for indigenous human rights and water rights and climate survival." She said she also plans to be active in the opposition to the proposed Keystone XL pipeline, though she wasn't sure in what way.