A Paris appeals court on Monday upheld former French President Nicolas Sarkozy’s five-year sentence for criminal association in a case over alleged efforts to secure Libyan money for his 2007 election campaign. The court said he had played a “decisive role” in a scheme for which he was the “sole beneficiary.”

The court described the offences as “unprecedented” in the history of the Fifth Republic, which dates from 1958. Sarkozy, who arrived at court with members of his family, was originally convicted last year. He served 20 days in prison before appealing.

Sarkozy will not return to prison while he pursues a further appeal at France’s highest criminal court. The sentence will not be enforced until that court issues its verdict.

Prosecutors argued there had been a conspiracy to raise funds from the late Libyan leader, Col Muammar Gaddafi. The defence said there was no evidence that any money had entered the campaign coffers.

The appeals court also found Sarkozy not guilty of corruption, ruling that he had enjoyed presidential immunity at the time.

Sarkozy, 71, became the first former French head of state since wartime leader Philippe Pétain to serve prison time. He was president from 2007 to 2012 and was the first French president since Valéry Giscard d’Estaing in 1981 not to be re-elected for a second term.

The conservative politician has been convicted in two other cases: overspending during his failed 2012 re-election bid and trying to extract favours from a judge.

Sarkozy and his wife, Carla Bruni-Sarkozy, are due to face trial next year over charges arising from his election finance conviction. The charges concern the retraction of testimony by a key witness who had initially said he had evidence that could incriminate Sarkozy.