From 831710d25740257ce84691f1367e5e0eae9c3e33 Mon Sep 17 00:00:00 2001 From: blepping <157360029+blepping@users.noreply.github.com> Date: Fri, 31 Jul 2026 10:12:17 -0600 Subject: [PATCH] Don't assume sampler_function has a __name__ attribute in detail logging (#15179) --- comfy/samplers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/samplers.py b/comfy/samplers.py index 9f571ece9..29e6bffb3 100755 --- a/comfy/samplers.py +++ b/comfy/samplers.py @@ -997,7 +997,7 @@ class KSAMPLER(Sampler): def k_callback(x): nonlocal first_step if first_step: - detail("First sampler step: model=%s sampler=%s step=%s total_steps=%s cfg=%s seed=%s sigma=%s sigma_hat=%s latent_shape=%s denoised_shape=%s", model_wrap.model_patcher.model.__class__.__name__, self.sampler_function.__name__, x["i"], total_steps, model_wrap.cfg, extra_args.get("seed"), x.get("sigma"), x.get("sigma_hat"), tuple(x["x"].shape), tuple(x["denoised"].shape)) + detail("First sampler step: model=%s sampler=%s step=%s total_steps=%s cfg=%s seed=%s sigma=%s sigma_hat=%s latent_shape=%s denoised_shape=%s", model_wrap.model_patcher.model.__class__.__name__, getattr(self.sampler_function, "__name__", "unknown"), x["i"], total_steps, model_wrap.cfg, extra_args.get("seed"), x.get("sigma"), x.get("sigma_hat"), tuple(x["x"].shape), tuple(x["denoised"].shape)) first_step = False if callback is not None: callback(x["i"], x["denoised"], x["x"], total_steps)