Hmm, interesting. Excommunication only occurs under very specific conditions. I don’t think conspiring to get yourself elected pope (if that’s even true) is one of them.
Rules of the papal conclave, explained
The cardinals say a communal oath and then an individual oath to uphold the rules. The punishment for making “any form of pact, agreement, promise or other commitment of any kind” is immediate excommunication.