Replace pylint broad-exception-raised rule with ruff (#123021)
This commit is contained in:
parent
5446dd92a9
commit
ad26db7dc8
19 changed files with 26 additions and 35 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue