[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
1193c8144a
commit
b34fc6258f
1 changed files with 1 additions and 3 deletions
|
|
@ -669,9 +669,7 @@ class DiffusionBackend:
|
|||
# Use ``logger.error`` with the already-scrubbed
|
||||
# message and exc_info=False so the bearer token
|
||||
# cannot leak through structured logging sinks.
|
||||
logger.error(
|
||||
"Diffusion load failed for %s: %s", repo_id, exc_msg
|
||||
)
|
||||
logger.error("Diffusion load failed for %s: %s", repo_id, exc_msg)
|
||||
raise RuntimeError(
|
||||
f"Failed to load diffusion model: {exc_msg}"
|
||||
) from exc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue