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 # Iptc KeyTag
elif "Iptc" in KeyTag: elif "Iptc" in KeyTag:
try: try:
KeyValue = self.plugin_image[KeyTag].values KeyValue = self.plugin_image[KeyTag].value
except KeyError: except KeyError:
KeyValue = "[not set]" KeyValue = ""
except ValueError: except ValueError:
KeyValue = "" KeyValue = ""
except AttributeError: except AttributeError:
KeyValue = "" KeyValue = ""
return KeyValue return KeyValue
#------------------------------------------------ #------------------------------------------------