Bug#4724; Fixed KeyError in Iptc of _get_value() -- similar to #4723 .

svn: r16757
This commit is contained in:
Rob G. Healey 2011-03-05 00:32:51 +00:00
parent 11850ad64a
commit f4159758b2

View File

@ -448,13 +448,15 @@ def _get_value(KeyTag, image):
if "Exif" in KeyTag: if "Exif" in KeyTag:
try: try:
KeyValue = image[KeyTag].raw_value KeyValue = image[KeyTag].raw_value
except KeyError: except KeyError:
KeyValue = image[KeyTag].value KeyValue = ""
# Iptc KeyValue family? # Iptc KeyValue family?
else: else:
try: try:
KeyValue = image[KeyTag].value KeyValue = image[KeyTag]
except KeyError: except KeyError:
KeyValue = "" KeyValue = ""