diff --git a/image_classifier/image_classifier.py b/image_classifier/image_classifier.py index 6c57e98..f1aa180 100755 --- a/image_classifier/image_classifier.py +++ b/image_classifier/image_classifier.py @@ -73,7 +73,7 @@ class image_classifier: self.exif_info = exif.Image(image_file) if self.exif_info.has_exif: for key in dir(self.exif_info): - if key != 'cannot read a base/unknown IFD tag instance': + if key != '_exif_ifd_pointer': sys.stdout.write(f"{key}: ") sys.stdout.write(f"{self.exif_info[key]}") self.append_people_to_exif(people)