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

@@ -18,7 +18,7 @@ def ulid_to_bytes_or_none(ulid: str | None) -> bytes | None:
try:
return ulid_to_bytes(ulid)
except ValueError as ex:
_LOGGER.error("Error converting ulid %s to bytes: %s", ulid, ex, exc_info=True)
_LOGGER.exception("Error converting ulid %s to bytes: %s", ulid, ex)
return None
@@ -29,9 +29,7 @@ def bytes_to_ulid_or_none(_bytes: bytes | None) -> str | None:
try:
return bytes_to_ulid(_bytes)
except ValueError as ex:
_LOGGER.error(
"Error converting bytes %s to ulid: %s", _bytes, ex, exc_info=True
)
_LOGGER.exception("Error converting bytes %s to ulid: %s", _bytes, ex)
return None