1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Enable ruff TRY401 (#114395)

* Enable ruff TRY401

* fix tests
This commit is contained in:
Sid
2024-03-29 07:20:36 +01:00
committed by GitHub
parent 530552b4f5
commit a5b609f081
61 changed files with 159 additions and 182 deletions

View File

@@ -489,8 +489,8 @@ class FlowManager(abc.ABC, Generic[_FlowResultT, _HandlerT]):
flow.async_cancel_progress_task()
try:
flow.async_remove()
except Exception as err: # pylint: disable=broad-except
_LOGGER.exception("Error removing %s flow: %s", flow.handler, err)
except Exception: # pylint: disable=broad-except
_LOGGER.exception("Error removing %s flow", flow.handler)
async def _async_handle_step(
self,