Capital punishment is against the European Convention of Human Rights. No EU (well Council of Europe) country is legally allowed extradite anyone where they would face the death penalty. That's been the law for years. There has never been any question of Assange being extradited and executed, because you can't extradite someone in that case.
Cripes, even Russia has stopped capital punishment because of the ECHR.