Files
ruff/crates
Илья Любавский 5d99ef9d95 [flake8-blind-except] Allow more logging methods (BLE001) (#22057)
## Summary
Fix issue #21889 by checking that the logging method is one of the
``debug``, ``info``, ``warning``, ``error``, ``exception``,
``critical``, ``log`` methods that support ``exc_info`` passing. Also
fixed the behavior in which ``exc_info`` was considered passed only when
it was equal to the literal ``True``, now the ``Truthiness`` of the
expression is checked (we will leave additional checks to type checkers)

## Test Plan
Additional snapshot tests have been added for all logging functions, as
well as tests in which an exception object is passed as ``exc_info``

---------

Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
2026-01-14 21:18:13 +00:00
..
2026-01-02 19:58:15 +00:00
2026-01-02 19:58:15 +00:00
2026-01-02 19:58:15 +00:00
2026-01-02 19:58:15 +00:00
2026-01-02 19:58:15 +00:00
2026-01-02 19:58:15 +00:00
2026-01-08 12:51:47 -06:00
2026-01-02 19:58:15 +00:00