Skip to content

Commit 4a1f712

Browse files
committed
fix: Detect if no exif before failing hard
1 parent cfe8346 commit 4a1f712

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docker/cas/src/metadb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def _handle_gps_info(lines, gps_info):
9494
def _handle_exif(lines, image, metapath):
9595
"""Process EXIF data from an image and append to metadata lines."""
9696
try:
97+
if not hasattr(image, '_getexif'):
98+
return
99+
97100
exif_data = image._getexif()
98101
if not exif_data:
99102
return

0 commit comments

Comments
 (0)