diff --git a/opendm/photo.py b/opendm/photo.py index 5d7ba0094..6e5a607c7 100644 --- a/opendm/photo.py +++ b/opendm/photo.py @@ -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: