prevent saving settings with bogus values

This commit is contained in:
AUTOMATIC
2022-09-23 17:27:30 +03:00
parent 79e7c39298
commit 6fa20d51dc
3 changed files with 22 additions and 20 deletions

View File

@@ -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()