diff --git a/src/plugins/gramplet/MediaMetadata.py b/src/plugins/gramplet/MediaMetadata.py index 25cd8896e..7bb2603f7 100644 --- a/src/plugins/gramplet/MediaMetadata.py +++ b/src/plugins/gramplet/MediaMetadata.py @@ -444,21 +444,11 @@ def _get_value(KeyTag, image): @param: image -- pyexiv2 ImageMetadata instance """ - # Exif KeyValue Family? - if "Exif" in KeyTag: - try: - KeyValue = image[KeyTag].raw_value + try: + KeyValue = image[KeyTag].raw_value - except KeyError: - KeyValue = "" - - # Iptc KeyValue family? - else: - try: - KeyValue = image[KeyTag] - - except KeyError: - KeyValue = "" + except KeyError: + KeyValue = "" return KeyValue