catch error when missing exif info

pull/347/head
Anna Petrasova 2016-05-07 12:27:52 -04:00 zatwierdzone przez Dakota Benjamin
rodzic 09acdf6224
commit 6cb0a90102
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -67,7 +67,7 @@ class ODM_Photo:
self.camera_model = val
elif key == 'Exif.Photo.FocalLength':
self.focal_length = float(val)
except pyexiv2.ExifValueError, e:
except (pyexiv2.ExifValueError, ValueError) as e:
pass
self.make_model = sensor_string(self.camera_make, self.camera_model)