From 2fbe2b06d50391410bba0082e4368056e8639a9b Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 6 Sep 2021 17:24:24 +0300 Subject: [PATCH] Add test for missing var --- image_classifier/image_classifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)