Bug#4724; Fixed a deprecation warning in using values instead of value.
svn: r16850
This commit is contained in:
parent
fac3f46efb
commit
ef2ea47437
@ -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
|
||||
|
||||
#------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user