[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-05-25 02:48:12 +00:00
commit 0ae20554dc

View file

@ -664,7 +664,9 @@ class DiffusionBackend:
with self._lock:
self._last_error = exc_msg
logger.exception("Diffusion load failed for %s", repo_id)
raise RuntimeError(f"Failed to load diffusion model: {exc_msg}") from exc
raise RuntimeError(
f"Failed to load diffusion model: {exc_msg}"
) from exc
finally:
with self._lock:
self._loading = False