fix error type

This commit is contained in:
Johannes Wilm 2022-08-09 21:25:00 +02:00
parent 10986d7be9
commit 6ccc046386

View file

@ -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))