Small fix.

This commit is contained in:
comfyanonymous 2023-03-20 14:55:28 -04:00
parent 0abe001edd
commit e85fcb822b
2 changed files with 6 additions and 6 deletions

View File

@ -752,7 +752,7 @@ class SaveImage:
if os.path.commonpath((self.output_dir, os.path.realpath(full_output_folder))) != self.output_dir:
print("Saving image outside the output folder is not allowed.")
return
return {}
try:
counter = max(filter(lambda a: a[1][:-1] == filename and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1