style(axelera): collapse single-line raise per ruff format

Matches the pinned ruff 0.15.20 used by upstream CI
(docker/main/requirements-dev.txt).
This commit is contained in:
patrykorwat 2026-08-18 10:37:37 +00:00
parent 5fa8bf75dd
commit c43a95bfe2

View File

@ -243,9 +243,7 @@ class _AxeleraInference:
if frame.ndim == 4:
# Frigate feeds a batched NHWC frame (1, H, W, C); drop the batch dim
if frame.shape[0] != 1:
raise ValueError(
f"Unexpected batch dimension in frame: {frame.shape}"
)
raise ValueError(f"Unexpected batch dimension in frame: {frame.shape}")
frame = frame[0]
frame = np.ascontiguousarray(frame)
self._frame_q.put(frame)