This covers a few cases

Such as when the tuple is empty or the value is None
This commit is contained in:
Jorge Gallegos
2016-04-07 10:38:31 -07:00
parent 6eb570ceb7
commit 3b4b3da145

View File

@@ -270,7 +270,7 @@ def get_exif_tags(data):
else:
logger.info('Unknown format for ExposureTime: %r', exptime)
if 'ISOSpeedRatings' in data:
if 'ISOSpeedRatings' in data and data['ISOSpeedRatings']:
if isinstance(data['ISOSpeedRatings'], tuple):
# Pillow == 3.0
simple['iso'] = data['ISOSpeedRatings'][0]