HAMBURG, N.Y. -- A judge dismissed driving while intoxicated charges filed against a Buffalo-area woman whose body acts like a "brewery," according to a Buffalo newspaper report.

The motorist's defense attorney argued his client suffers from auto-brewery syndrome, a rare intestinal condition that transforms food into alcohol, reported The Buffalo News. The syndrome explains why the woman had a blood alcohol content of .33 percent when she was pulled over while driving in Hamburg in 2014, attorney Joseph J. Marusak told The Buffalo News.

Hamburg Town Justice Walter L. Rooth dropped the aggravated DWI and DWI charges against the woman on Dec. 9 after reviewing medical evidence about the woman's disorder, said The Buffalo News.

The woman was not identified in the story.

She was pulled over around on Oct. 11, 2014 on Route 5 after another driver called 911 after observing the woman driving erratically, said The Buffalo News. Police noted the woman smelled like alcohol, was slurring her words and had trouble with sobriety tests, said The Buffalo News.

While the woman admitted she had a few drinks before driving on Oct. 11, she was adamant that she hadn't consumed enough to have a blood alcohol content of .33 percent, said The Buffalo News.

After consulting with an Ohio physician who treats patients with auto-brewery syndrome, the woman used a Breathalyzer device to test her blood alcohol content 18 times when she wasn't drinking and frequently tested above the legal limit, said The Buffalo News. Tests conducted by medical personnel also measured the woman's blood alcohol content as high as .40 percent, reported The Buffalo News.

The syndrome causes the woman's digestive system to act like a "brewery," Rooth told The Buffalo News.

The Erie County District Attorney's Office plans to appeal the judge's decision to dismiss the charges, said The Buffalo News.