mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Upgrade ruff to 0.0.285 (#98647)
This commit is contained in:
@ -132,7 +132,7 @@ def session_scope(
|
||||
need_rollback = True
|
||||
session.commit()
|
||||
except Exception as err: # pylint: disable=broad-except
|
||||
_LOGGER.error("Error executing query: %s", err, exc_info=True)
|
||||
_LOGGER.exception("Error executing query: %s", err)
|
||||
if need_rollback:
|
||||
session.rollback()
|
||||
if not exception_filter or not exception_filter(err):
|
||||
|
Reference in New Issue
Block a user