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
|
# 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
|
||||||
|
|
||||||
#------------------------------------------------
|
#------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user