[Python-modules-commits] [python-exif] 06/12: Fix for situations when makernotes entries do not exist

Wolfgang Borgert debacle at moszumanska.debian.org
Mon Oct 6 22:17:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to annotated tag 1.0.10
in repository python-exif.

commit afff7a4817f798a7546771e7ead2abdedae1bbf0
Author: John Cavanaugh <john.cavanaugh at hp.com>
Date:   Sun Jul 15 00:42:17 2012 -0700

    Fix for situations when makernotes entries do not exist
---
 EXIF.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/EXIF.py b/EXIF.py
index 0779ca1..7579779 100755
--- a/EXIF.py
+++ b/EXIF.py
@@ -1585,7 +1585,8 @@ class EXIF_header:
                           dict=MAKERNOTE_CANON_TAGS)
             for i in (('MakerNote Tag 0x0001', MAKERNOTE_CANON_TAG_0x001),
                       ('MakerNote Tag 0x0004', MAKERNOTE_CANON_TAG_0x004)):
-                self.canon_decode_tag(self.tags[i[0]].values, i[1])
+                if i[0] in self.tags:
+                   self.canon_decode_tag(self.tags[i[0]].values, i[1])
             return
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-exif.git



More information about the Python-modules-commits mailing list