diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-08 06:12:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 06:12:56 +0000 |
commit | 855f83f92c7f951683d3c664c58f4b37017b8d32 (patch) | |
tree | 62c30d077ae982ace4a66eb2ab16386a06d550c1 | |
parent | d1d7dd2a44dad58267c78ac9b6e9aba71a6f0225 (diff) | |
parent | 14e55a330146bda01f883a79e3900314a79eb22c (diff) | |
download | stable-diffusion-webui-gfx803-855f83f92c7f951683d3c664c58f4b37017b8d32.tar.gz stable-diffusion-webui-gfx803-855f83f92c7f951683d3c664c58f4b37017b8d32.tar.bz2 stable-diffusion-webui-gfx803-855f83f92c7f951683d3c664c58f4b37017b8d32.zip |
Merge pull request #10041 from AUTOMATIC1111/print-exception-#9219
print PIL.UnidentifiedImageError
-rw-r--r-- | modules/img2img.py | 3 |
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)
|