mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
If a `try` block has multiple statements, a compound statement, or control flow, rewriting it with `contextlib.suppress` would obfuscate the fact that the exception still short-circuits further statements in the block. Fixes #1947. Signed-off-by: Anders Kaseorg <andersk@mit.edu>