That is false. The excommunication was latae sententiae.
A latae sententiae penalty follows automatically, by force of the law itself, when the law is contravened.
How conveeeenient.