From ef2ea474371382608d2cc84c83a7139aec114d65 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Fri, 18 Mar 2011 19:59:44 +0000 Subject: [PATCH] Bug#4724; Fixed a deprecation warning in using values instead of value. svn: r16850 --- src/plugins/gramplet/MetadataViewer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/gramplet/MetadataViewer.py b/src/plugins/gramplet/MetadataViewer.py index de9b51002..e2c54a22b 100644 --- a/src/plugins/gramplet/MetadataViewer.py +++ b/src/plugins/gramplet/MetadataViewer.py @@ -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 #------------------------------------------------