aboutsummaryrefslogtreecommitdiff
path: root/modules/txt2img.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r--modules/txt2img.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py
index d2cf39ef..5368e4d0 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -37,9 +37,7 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2:
print(f"\ntxt2img: {prompt}", file=shared.progress_print_out)
processed = modules.scripts.scripts_txt2img.run(p, *args)
- if processed is not None:
- pass
- else:
+ if processed is None:
processed = process_images(p)
shared.total_tqdm.clear()