diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-23 14:27:30 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-23 14:27:30 +0000 |
commit | 6fa20d51dcfd7db3286bc9dad31455b69b6daf65 (patch) | |
tree | a7610cd4e870222423f5a5f15b9e06e40ee82ca6 /modules/txt2img.py | |
parent | 79e7c392989ad70a1c02cbfe6eb38ee5a78bdbce (diff) | |
download | stable-diffusion-webui-gfx803-6fa20d51dcfd7db3286bc9dad31455b69b6daf65.tar.gz stable-diffusion-webui-gfx803-6fa20d51dcfd7db3286bc9dad31455b69b6daf65.tar.bz2 stable-diffusion-webui-gfx803-6fa20d51dcfd7db3286bc9dad31455b69b6daf65.zip |
prevent saving settings with bogus values
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r-- | modules/txt2img.py | 4 |
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()
|