ruff
72fdb7d4 - [`flake8-blind-except`] Change `BLE001` to permit `logging.critical(..., exc_info=True)`. (#19520)

Commit
151 days ago
[`flake8-blind-except`] Change `BLE001` to permit `logging.critical(..., exc_info=True)`. (#19520) ## Summary Changing `BLE001` (blind-except) so that it does not flag `except` clauses which include `logging.critical(..., exc_info=True)`. ## Test Plan It passes the following (whereas the `main` branch does not): ```sh $ cargo run -p ruff -- check somefile.py --no-cache --select=BLE001 ``` ```python # somefile.py import logging try: print("Hello world!") except Exception: logging.critical("Did not run.", exc_info=True) ``` Related: https://github.com/astral-sh/ruff/issues/19519
Author
Parents
Loading