Bug#4724; Fixed a deprecation warning in using values instead of value.

svn: r16850
This commit is contained in:
Rob G. Healey 2011-03-18 19:59:44 +00:00
parent fac3f46efb
commit ef2ea47437

View File

@ -475,16 +475,17 @@ class MetadataViewer(Gramplet):
# Iptc KeyTag
elif "Iptc" in KeyTag:
try:
KeyValue = self.plugin_image[KeyTag].values
KeyValue = self.plugin_image[KeyTag].value
except KeyError:
KeyValue = "[not set]"
KeyValue = ""
except ValueError:
KeyValue = ""
except AttributeError:
KeyValue = ""
return KeyValue
#------------------------------------------------