Merge pull request #10041 from AUTOMATIC1111/print-exception-#9219
print PIL.UnidentifiedImageError
This commit is contained in:
commit
855f83f92c
|
@ -48,7 +48,8 @@ def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
img = Image.open(image)
|
img = Image.open(image)
|
||||||
except UnidentifiedImageError:
|
except UnidentifiedImageError as e:
|
||||||
|
print(e)
|
||||||
continue
|
continue
|
||||||
# Use the EXIF orientation of photos taken by smartphones.
|
# Use the EXIF orientation of photos taken by smartphones.
|
||||||
img = ImageOps.exif_transpose(img)
|
img = ImageOps.exif_transpose(img)
|
||||||
|
|
Loading…
Reference in New Issue