diff --git a/opendrop/util.py b/opendrop/util.py index d08e031..6a2d866 100644 --- a/opendrop/util.py +++ b/opendrop/util.py @@ -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