WASHINGTON (AP) — A federal appeals court has upheld the criminal conviction of Donald Trump’s longtime ally Steve Bannon for defying a subpoena from the House committee investigating the attack on the U.S. Capitol.

A three-judge panel of the U.S. Court of Appeals for the D.C. Circuit on Friday rejected Bannon’s challenges to his contempt of Congress conviction.

Bannon had been sentenced to four months in prison, but the judge overseeing the case had allowed him to stay free pending appeal.

Bannon’s attorneys didn’t immediately respond to an email seeking comment.