Are you going to provide a source or just make a statement?
Pius XII:
"None of the cardinals may in any way, or by pretext or reason of any excommunication, suspension, or interdict whatsoever, or of any other ecclesiastical impediment, be excluded from the active and passive election of the supreme pontiff. We hereby suspend such censures solely for the purposes of the said election; at other times they are to remain in vigor" (
Vacantis Apostolicae Sedis, 34).
https://www.vatican.va/content/pius-xii/la/apost_constitutions/docuмents/hf_p-xii_apc_19451208_vacantis-apostolicae-sedis.html