Ok, i may be a bit to fairly wrong in this cuz i havnt read it in a while, but i do know a few things: Palpatine was part of the Rule of Two, which means he had Banes teachings. This is from the Bane Rule of Two: There are some who posses the ability to shoot lightning from their fingers, that can move mountains with mere thoughts, then there are those who are skilled in the arts of persuasion, that can affect millions of worlds with just a few words, and then there are those who posses a natural affinity for the dark side itself, those are the ones who can unleash dark magics and hidden sorceries on their foes." i think Sidious was one of the persuaders, though all after Bane knew how to cast lightning, Palpatine DID affect millions of world with just a few words. I think a guy like that could easily get out of being convicted for high treason. Dont forget that he was the Supreme Chancellor, AND the most respected man in the galaxy. He was supposed to be the savior of the Republic, i dont htink he would be convicted. He would get off and then the jedi would be attacked by the entire Grand Army of the Republic for attacking him, not just Anakin and the 501st legion. Palpatine was WAY to dangerous to be left alive, as he killed thousands of people, and started a full scale rebellion just to get a few people out of the way. He also killed enyone that was force sensitive that he found, or ordered them killed, or turned them into his slaves. There was no room for error, there was no force sensitive that he left alive, or free, and there was no person that wasnt oppressed except people that were high in his favor. Case closed, i think the jedi would remake the Code if he died AFTER his Sith identity had been revealed. Maybe even before.