Replace pylint broad-except with Ruff BLE001 (#116250)

This commit is contained in:
Sid
2024-05-07 14:00:27 +02:00
committed by GitHub
parent b35fbd8d20
commit 2cc916db6d
335 changed files with 459 additions and 459 deletions

View File

@ -300,7 +300,7 @@ async def handle_call_service(
translation_key=err.translation_key,
translation_placeholders=err.translation_placeholders,
)
except Exception as err: # pylint: disable=broad-except
except Exception as err:
connection.logger.exception("Unexpected exception")
connection.send_error(msg["id"], const.ERR_UNKNOWN_ERROR, str(err))