From 4603eec81a43fe8dbc1946f1a08ac06c60dd2631 Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Sun, 17 Apr 2016 00:36:04 +0200 Subject: [PATCH] Simplify test for #199 and add author to AUTHORS --- AUTHORS | 1 + sigal/image.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 073b632..dc45531 100644 --- a/AUTHORS +++ b/AUTHORS @@ -11,6 +11,7 @@ alphabetical order): - Jamie Starke - @jdn06 - Jonas Kaufmann +- Jorge Gallegos - Juan A. Suarez Romero - Kai Fricke - Keith Johnson diff --git a/sigal/image.py b/sigal/image.py index 1388e23..a7eb202 100644 --- a/sigal/image.py +++ b/sigal/image.py @@ -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]