The provisions of article L. 2335-2 are not applicable in the event of financial difficulties arising, for a municipality, from its shareholding in the capital of a local semi-public company or from the guarantee it has granted for loans contracted by such a company when the shareholding was acquired or the guarantees granted after 8 July 1983, the date of publication of the loi n° 83-597 du 7 juillet 1983 relative aux sociétés d’économie mixte locales.