A Northern California man pulled a switchblade on GOP congressional candidate Rudy Peters and tried to stab him after shouting swear words about President Donald Trump on Sunday at a local town festival, authorities and the candidate said.

Sheriff’s deputies arrested Farzad Vincent Fazeli, 35, of Castro Valley, and have charged him with felony counts of assault and making threats and misdemeanor counts of brandishing a weapon and possessing a switchblade, the San Francisco Chronicle reported.

Peters, a Republican who is challenging Rep. Eric Swalwell in California’s 15th District, was uninjured after the Fazeli’s switchblade malfunctioned, authorities said.

A man approached Peters’ booth at the festival in an “aggressive manner” and made “disparaging remarks” about Republicans and “elected officials,” witnesses told deputies, the Chronicle reported.

“All of a sudden we hear someone screaming, ‘F— Trump, f— Trump!” Peters told the Chronicle in an interview. The man raised his middle finger as he stood “right in front of the booth,” the candidate said.