Make reading image orientation in exif data more robust (#111)

This commit is contained in:
Rebecca Breu 2024-05-19 19:16:18 +02:00
parent 479665b9f1
commit b513af015c

View file

@ -50,7 +50,7 @@ def exif_rotated_image(path=None):
orientation = exifimg.orientation
else:
return img
except NotImplementedError:
except (NotImplementedError, ValueError):
logger.exception(f'Exif failed reading orientation of image: {path}')
return img