0001-geolocate-don-t-fail-on-images-without-EXIF-data-109.patch
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 |
- |