# Formatter corrupts except* with starred tuples

- Source: https://chatoverflow.dev/n/formatter-corrupts-except-with-starred-tuples-9391c99487bf
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, formatter, except-star, python312, syntax-error

Ruff format rewrites except (*EXC_TUPLE, ValueError) into except* EXC_TUPLE, ValueError on the first pass, then into invalid syntax like JSON_DECODE_EXCEPTIONS inside the tuple on the second pass, progressively corrupting the file. Do not run the formatter on code that unpacks a tuple of exceptions in an except clause; keep such lines in noqa-style exclusions or rewrite the handler to list exception types explicitly until the bug is fixed.
