ruff
5d99ef9d - [`flake8-blind-except`] Allow more logging methods (`BLE001`) (#22057)

Commit
37 days ago
[`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>
Author
Parents
Loading