From 16966342bb5fd79fcfb6308efd6447e3f44aa4ff Mon Sep 17 00:00:00 2001 From: Sirshendu Ganguly Date: Thu, 4 Jun 2026 23:17:50 +0530 Subject: [PATCH] Fixed whitespaces --- modules/imageInference.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/imageInference.py b/modules/imageInference.py index 1aa5fb6..9aca713 100644 --- a/modules/imageInference.py +++ b/modules/imageInference.py @@ -233,7 +233,9 @@ class txt2img: has_structured_prompt = ( isinstance(structured_prompt, dict) and len(structured_prompt) > 0 ) - has_positive_prompt = bool(positivePrompt and str(positivePrompt).strip()) + has_positive_prompt = bool( + positivePrompt is not None and str(positivePrompt) != "" + ) if has_structured_prompt and has_positive_prompt: return ( "settings.structuredPrompt and positivePrompt are mutually exclusive. "