mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-04-13 17:51:00 +00:00
Merge pull request #73 from cyberdelia/fix-transpose-exif
Catch error when exif data doesn't exist
This commit is contained in:
commit
e574f1190f
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