Bug fix: Handle missing image gracefully when requesting a thumbnail of an
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 30 Jan 2006 18:23:43 +0000 (18:23 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 30 Jan 2006 18:23:43 +0000 (18:23 +0000)
image not previously cached.

src/packages/kofoto/gkofoto/imageversionslist.py

index c24b1f5..b6c302e 100644 (file)
@@ -74,7 +74,7 @@ class ImageVersionsList(gtk.ScrolledWindow):
             try:
                 thumbnailLocation = env.imageCache.get(iv, 128, 128)[0]
                 thumbnail.set_from_file(thumbnailLocation)
-            except OSError:
+            except (IOError, OSError):
                 thumbnail.set_from_pixbuf(env.unknownImageIconPixbuf)
             alignment = gtk.Alignment(0.5, 0.5, 0.5, 0.5)
             alignment.add(thumbnail)