A California man who allegedly emailed a death threat to Sen. Dianne Feinstein, D-Calif., is facing two felony charges, according to a local report.

Craig Steven Shaver, 47, was charged in a Los Angeles court Thursday with one felony count of attempted criminal threats and another on possession of a firearm by a felon, according to the local CBS affiliate, for an emailed threat to the California Democrat.

Shaver's bail was set at $50,000. If convicted, he will face up to three years in state prison.

The Los Angeles County District Attorney's Office alleged in court that Shaver emailed a death threat to the lawmaker on Sept. 30, but they did not share what he wrote or any other information regarding the incident.

The Lancaster, Calif., resident will be arraigned Thursday in Los Angeles County Superior Court.

[Also read: Chris Matthews accuses Trump of playing 'little ethnic game' with Dianne Feinstein]

Shaver was previously convicted of grand theft in 1991, making it illegal under federal law for him to own a firearm as a felon. It's not clear at what point in the investigation police found a revolver in his possession.

Feinstein, 85, is the ranking Democrat on the Senate Judiciary Committee and has been a senator since 1992. She previously served as mayor of San Francisco from 1978 to 1988.

Feinstein is up for re-election next month and is up against state Sen. Kevin de Leon, who was endorsed by the California Democratic Party. She has a double-digit lead over her opponent, according to a recent Real Clear Politics average.

In California, the top two candidates in the race will be on the election ballot, even if they are from the same party.