A Buffalo Common Council member will not face any charges after bringing a loaded gun into a city school last week.

Erie County District Attorney John Flynn says Ulysees Wingo will not face legal consequences.

Wingo has a permit for the firearm.

The councilman said in a statement last week that he accidentally brought the weapon to an event at Riverside High School.

A source told Spectrum News that once Wingo realized he had the gun on school property — which is illegal in New York and against district policy — he alerted the principal.

That source says the ammunition was removed from the gun, and principal Jerome Piwko locked the weapon and ammunition away in his office until the event was over.

The district says per their procedures, the principal was placed on administrative leave.

Wingo was banned from all district grounds, and a BPS spokesperson says he will still need written permission from the superintendent to enter school property.