mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-17 05:40:25 +00:00
avoid Transpose to crash when exif data doesn't exists
This commit is contained in:
parent
ee1fb7f943
commit
54d5237adc
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue