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

@@ -142,7 +142,7 @@ def session_scope(
if session.get_transaction() and not read_only:
need_rollback = True
session.commit()
except Exception as err: # pylint: disable=broad-except
except Exception as err:
_LOGGER.exception("Error executing query")
if need_rollback:
session.rollback()