Replace pylint broad-exception-raised rule with ruff (#123021)

This commit is contained in:
epenet 2024-08-02 12:24:03 +02:00 committed by GitHub
parent 5446dd92a9
commit ad26db7dc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 26 additions and 35 deletions

View file

@ -36,7 +36,7 @@ async def get_error_log(hass_ws_client):
def _generate_and_log_exception(exception, log):
try:
raise Exception(exception) # pylint: disable=broad-exception-raised
raise Exception(exception) # noqa: TRY002
except Exception:
_LOGGER.exception(log)