more fixes
All checks were successful
Datadog Secrets Scanning / Datadog Static Analyzer (push) Successful in 15s
Datadog Software Composition Analysis / Datadog SBOM Generation and Upload (push) Successful in 15s
Datadog Static Analysis / Datadog Static Analyzer (push) Successful in 25s
Release / build (push) Successful in 36s
Release / publish_head (push) Successful in 34s

This commit is contained in:
Tanishq Dubey 2025-03-15 20:03:58 -04:00
parent 23ce3be362
commit 74a010e82a

View File

@ -39,7 +39,7 @@ def generate_thumbnail(image_path, resize_percent, min_width, max_width):
img = img.rotate(270, expand=True) img = img.rotate(270, expand=True)
except (AttributeError, KeyError, IndexError): except (AttributeError, KeyError, IndexError):
# cases: image don't have getexif # cases: image don't have getexif
exif = {} exif = b""
# Save the thumbnail to a BytesIO object # Save the thumbnail to a BytesIO object
thumbnail_io = BytesIO() thumbnail_io = BytesIO()