Remove set_has_data calls

svn: r17931
This commit is contained in:
Nick Hall 2011-07-15 14:57:35 +00:00
parent d4492760a6
commit 9a1b8ec128

View File

@ -172,8 +172,7 @@ class MetadataView(gtk.TreeView):
try: try:
metadata = pyexiv2.Image(full_path) metadata = pyexiv2.Image(full_path)
except IOError: except IOError:
self.set_has_data(False) return False
return
metadata.readMetadata() metadata.readMetadata()
for section, key, key2, func in TAGS: for section, key, key2, func in TAGS:
if key not in metadata.exifKeys(): if key not in metadata.exifKeys():
@ -201,8 +200,7 @@ class MetadataView(gtk.TreeView):
try: try:
metadata.read() metadata.read()
except IOError: except IOError:
self.set_has_data(False) return False
return
for section, key, key2, func in TAGS: for section, key, key2, func in TAGS:
if key not in metadata.exif_keys: if key not in metadata.exif_keys:
continue continue