Support for Python 3.11 "except*" syntax is here

Hi Python developers,

We now have syntax-level support for except* syntax which handles ExceptionGroups as introduced in Python 3.11.

We’ve added one new rule to support this:

  • S6468: ExceptionGroup and BaseExceptionGroup should not be caught with except*

This is now available on SonarCloud as well as SonarQube 9.8.

Please feel free to leave any questions or feedback in the comments.

Jean

4 Likes