diff --git a/avatar/models.py b/avatar/models.py index c7f4a8a..12b3b72 100644 --- a/avatar/models.py +++ b/avatar/models.py @@ -138,7 +138,7 @@ class Avatar(models.Model): try: orientation = image._getexif()[0x0112] ops = EXIF_ORIENTATION_STEPS[orientation] - except AttributeError: + except TypeError: ops = [] for method in ops: image = image.transpose(getattr(Image, method))