mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Make reading image orientation in exif data more robust (#111)
This commit is contained in:
parent
479665b9f1
commit
b513af015c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue