It does seem like it would be a severe constitutional loophole to allow somebody who is appealing a sentence to run for president and then just pardon (which is also a presidential power in France) themselves, even though they've already been found guilty in a court.