mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-17 05:40:25 +00:00
Merge pull request #49 from cyberdelia/fix-empty-exif-data
Avoid Transpose to crash when there is no exif data.
This commit is contained in:
commit
486fb51a1e
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ class Transpose(object):
|
|||
try:
|
||||
orientation = img._getexif()[0x0112]
|
||||
ops = self._EXIF_ORIENTATION_STEPS[orientation]
|
||||
except AttributeError:
|
||||
except (TypeError, AttributeError):
|
||||
ops = []
|
||||
else:
|
||||
ops = self.methods
|
||||
|
|
|
|||
Loading…
Reference in a new issue