Skip to content

Commit

Permalink
Process images with malformed GPS tags
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Jan 28, 2021
1 parent 4d5ea4f commit 7cbd014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendm/photo.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def parse_exif_values(self, _path_file):
self.latitude = self.dms_to_decimal(tags['GPS GPSLatitude'], tags['GPS GPSLatitudeRef'])
if 'GPS GPSLongitude' in tags and 'GPS GPSLongitudeRef' in tags:
self.longitude = self.dms_to_decimal(tags['GPS GPSLongitude'], tags['GPS GPSLongitudeRef'])
except IndexError as e:
except (IndexError, ValueError) as e:
log.ODM_WARNING("Cannot read basic EXIF tags for %s: %s" % (_path_file, str(e)))

try:
Expand Down

0 comments on commit 7cbd014

Please sign in to comment.