Simplify test for #199 and add author to AUTHORS

This commit is contained in:
Simon Conseil
2016-04-17 00:36:04 +02:00
parent f7b88dc216
commit 4603eec81a
2 changed files with 2 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ alphabetical order):
- Jamie Starke
- @jdn06
- Jonas Kaufmann
- Jorge Gallegos
- Juan A. Suarez Romero
- Kai Fricke
- Keith Johnson

View File

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