In case the image's EXIF does not contain the "Orientation" key

This commit is contained in:
Makito
2019-10-09 22:07:49 +02:00
committed by Milan Stute
parent bf6d47f071
commit a61a2f6d9e
+1 -1
View File
@@ -180,7 +180,7 @@ class AirDropUtil:
orientation = exif['Orientation']
if orientation in angles.keys():
im = im.rotate(angles[orientation], expand=True)
except AttributeError:
except (AttributeError, KeyError):
pass # no EXIF data available
# Big image