First the election, then the litigation