Upgrade ruff to 0.0.285 (#98647)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user