Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ynr/apps/moderation_queue/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ def rotate_photo(original_image):
if exif and exif.get(274):
pil_image = ImageOps.exif_transpose(pil_image)
buffer = BytesIO()
pil_image.save(buffer, "PNG")
try:
pil_image.save(buffer, "PNG")
except AttributeError as e:
print(f"An error occurred: {e}")
continue
return pil_image


Expand Down