Work-around for a bug in PIL.
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 8 Aug 2004 10:35:44 +0000 (10:35 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 8 Aug 2004 10:35:44 +0000 (10:35 +0000)
src/lib/kofoto/shelf.py

index 7e0fada..7300015 100644 (file)
@@ -747,7 +747,8 @@ class Shelf:
         import Image as PILImage
         try:
             pilimg = PILImage.open(path)
-        except IOError:
+#        except IOError:
+        except: # Work-around for buggy PIL.
             raise NotAnImageError, path
         width, height = pilimg.size
         location = unicode(os.path.realpath(path.encode(self.codeset)),