A man accidentally shot himself in the foot in a church in Sulphur Springs, Texas, on Wednesday evening, police told the Longview News-Journal.

The man accidentally discharged his pistol in the Davis Street Baptist Church’s family life center, according to the News-Journal. He sustained minor injuries, and nobody else was hurt, police said.

Texas’ new open carry law went into effect in at the beginning of this year. The law allows private businesses to ban the open carry of firearms. And the Catholic diocese in the state is putting up signs noting that its churches have banned weapons.