mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
upload: Add test jpg image with no exif data.
This commit is contained in:
committed by
Tim Abbott
parent
a2c9517f8d
commit
cd1233d3f7
@@ -88,7 +88,7 @@ def exif_rotate(image: Image) -> Image:
|
||||
if not hasattr(image, '_getexif'):
|
||||
return image
|
||||
exif_data = image._getexif()
|
||||
if exif_data is None: # nocoverage # don't have a test image for this case, but it happens
|
||||
if exif_data is None:
|
||||
return image
|
||||
|
||||
exif_dict = dict(exif_data.items())
|
||||
|
||||
Reference in New Issue
Block a user