aboutsummaryrefslogtreecommitdiff
path: root/modules/img2img.py
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2023-05-03 14:28:59 +0900
committerw-e-w <40751091+w-e-w@users.noreply.github.com>2023-05-03 14:28:59 +0900
commit14e55a330146bda01f883a79e3900314a79eb22c (patch)
treeb4ee6af87762d87abe358d42870b1f4b707e1706 /modules/img2img.py
parent335428c2c8139dfe07ba096a6defa75036660244 (diff)
print PIL.UnidentifiedImageError
Diffstat (limited to 'modules/img2img.py')
-rw-r--r--modules/img2img.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/img2img.py b/modules/img2img.py
index 56c846d6..9fc3a698 100644
--- a/modules/img2img.py
+++ b/modules/img2img.py
@@ -48,7 +48,8 @@ def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args):
try:
img = Image.open(image)
- except UnidentifiedImageError:
+ except UnidentifiedImageError as e:
+ print(e)
continue
# Use the EXIF orientation of photos taken by smartphones.
img = ImageOps.exif_transpose(img)