aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-10 16:33:45 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-10 16:33:45 +0300
commit1b963c205fe97d33a1dfe3fc7c62bc860a0e7d2e (patch)
treede8d490443e7ef1e4963816603eb2605fd3fbe57
parentb3311a50dc7a9447fec980fc7de19a71f27cd527 (diff)
fixed broken empty directory when prompt does not start with letter, this time for real
-rw-r--r--modules/images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/images.py b/modules/images.py
index fc5d370f..c1a58013 100644
--- a/modules/images.py
+++ b/modules/images.py
@@ -264,7 +264,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i
if save_to_dirs and not no_prompt:
words = [x for x in re_nonletters.split(prompt or "") if len(x)>0]
- if len(words[0]) == 0:
+ if len(words) == 0:
words = ["empty"]
dirname = " ".join(words[0:opts.save_to_dirs_prompt_len]).strip()