Upgrade ruff to 0.0.285 (#98647)

This commit is contained in:
Ville Skyttä
2023-08-19 15:17:17 +03:00
committed by GitHub
parent f318063a77
commit 3094991236
39 changed files with 109 additions and 119 deletions

View File

@ -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):