Projet

Général

Profil

0001-geolocate-don-t-fail-on-images-without-EXIF-data-109.patch

Frédéric Péters, 12 mai 2016 17:41

Télécharger (1004 octets)

Voir les différences:

Subject: [PATCH] geolocate: don't fail on images without EXIF data (#10905)

 wcs/wf/geolocate.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
wcs/wf/geolocate.py
156 156
            get_logger().error('error geolocating from photo, invalid file')
157 157
            return
158 158

  
159
        exif_data = image._getexif()
159
        try:
160
            exif_data = image._getexif()
161
        except AttributeError:
162
            get_logger().error('error geolocating from photo, failed to get EXIF data')
163
            return
164

  
160 165
        if exif_data:
161 166
            gps_info = exif_data.get(0x8825)
162 167
            if gps_info:
163
-