add check for startwith _

This commit is contained in:
Antonio J. Delgado 2021-09-06 17:27:16 +03:00
parent 2fbe2b06d5
commit cbbe4ca341

View file

@ -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 != '_exif_ifd_pointer':
if not key.startswith("_"):
sys.stdout.write(f"{key}: ")
sys.stdout.write(f"{self.exif_info[key]}")
self.append_people_to_exif(people)