Fix if cls is None

This commit is contained in:
awsr
2026-01-21 18:16:47 -08:00
parent b9b36ed962
commit 747ec86eb9
+1 -1
View File
@@ -15,7 +15,7 @@ def apply(p: processing.StableDiffusionProcessing): # pylint: disable=arguments-
cls = unapply()
if p.pag_scale == 0:
return
if 'PAG' in cls.__name__:
if cls is not None and 'PAG' in cls.__name__:
pass
elif detect.is_sd15(cls):
if sd_models.get_diffusers_task(shared.sd_model) != sd_models.DiffusersTaskType.TEXT_2_IMAGE: