mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-16 22:20:30 +00:00
fix error type
This commit is contained in:
parent
10986d7be9
commit
6ccc046386
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue