aboutsummaryrefslogtreecommitdiff
path: root/modules/txt2img.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r--modules/txt2img.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py
index 6ebca656..57278bdc 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -65,7 +65,8 @@ def txt2img(id_task: str, prompt: str, negative_prompt: str, prompt_styles, step
print(generation_info_js)
for img in processed.images:
- img.already_saved_as += f'?{int(time())}'
+ if hasattr(img, 'already_saved_as'):
+ img.already_saved_as += f'?{int(time())}'
if opts.do_not_show_images:
processed.images = []