Fixed a bug where the keywords entry was not being displayed and therefore only Active Image and Description were being displayed.
svn: r16759
This commit is contained in:
parent
d8d4acb2e0
commit
db1c7c4b25
@ -444,21 +444,11 @@ def _get_value(KeyTag, image):
|
||||
@param: image -- pyexiv2 ImageMetadata instance
|
||||
"""
|
||||
|
||||
# Exif KeyValue Family?
|
||||
if "Exif" in KeyTag:
|
||||
try:
|
||||
KeyValue = image[KeyTag].raw_value
|
||||
try:
|
||||
KeyValue = image[KeyTag].raw_value
|
||||
|
||||
except KeyError:
|
||||
KeyValue = ""
|
||||
|
||||
# Iptc KeyValue family?
|
||||
else:
|
||||
try:
|
||||
KeyValue = image[KeyTag]
|
||||
|
||||
except KeyError:
|
||||
KeyValue = ""
|
||||
except KeyError:
|
||||
KeyValue = ""
|
||||
|
||||
return KeyValue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user