Bug#4724; Fixed KeyError in Iptc of _get_value() -- similar to #4723 .
svn: r16757
This commit is contained in:
parent
11850ad64a
commit
f4159758b2
@ -448,13 +448,15 @@ def _get_value(KeyTag, image):
|
||||
if "Exif" in KeyTag:
|
||||
try:
|
||||
KeyValue = image[KeyTag].raw_value
|
||||
|
||||
except KeyError:
|
||||
KeyValue = image[KeyTag].value
|
||||
KeyValue = ""
|
||||
|
||||
# Iptc KeyValue family?
|
||||
else:
|
||||
try:
|
||||
KeyValue = image[KeyTag].value
|
||||
KeyValue = image[KeyTag]
|
||||
|
||||
except KeyError:
|
||||
KeyValue = ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user