diff --git a/imagekit/processors/__init__.py b/imagekit/processors/__init__.py index c7ff304..a8af194 100644 --- a/imagekit/processors/__init__.py +++ b/imagekit/processors/__init__.py @@ -167,7 +167,7 @@ class Transpose(object): try: orientation = img._getexif()[0x0112] ops = self._EXIF_ORIENTATION_STEPS[orientation] - except (TypeError, AttributeError): + except (KeyError, TypeError, AttributeError): ops = [] else: ops = self.methods