Skip to content

Commit

Permalink
fix error type
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswilm committed Aug 9, 2022
1 parent 10986d7 commit 6ccc046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avatar/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def transpose_image(self, image):
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))
Expand Down

0 comments on commit 6ccc046

Please sign in to comment.