mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Replace pylint broad-except with Ruff BLE001 (#116250)
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user