PITTSFIELD, Mass. (AP) — A woman has pleaded guilty to setting a fire at a Pittsfield homeless shelter but will avoid jail if she stays out of further legal trouble.

The Berkshire Eagle reports that 23-year-old Amanda Swift pleaded guilty Tuesday to attempted arson of a dwelling house and burning personal property in connection with the fire in a room she had occupied at the Barton’s Crossing shelter in April 2016.

A judge continued Swift’s case without a finding for two years, which means if she remains out of further legal trouble, the charges will be dismissed.

Firefighters responding to the shelter found that the smoke detector had been removed and its wires cut in Swift’s room. The smoke detector and a lighter were found behind a dresser. No injuries were reported.

(Copyright (c) 2024 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox