Bug fix: Ignore identified MPEG files in Shelf.createImage.
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 24 Aug 2004 20:34:30 +0000 (20:34 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 24 Aug 2004 20:34:30 +0000 (20:34 +0000)
src/lib/kofoto/shelf.py

index 7300015..265dcea 100644 (file)
@@ -750,6 +750,8 @@ class Shelf:
 #        except IOError:
         except: # Work-around for buggy PIL.
             raise NotAnImageError, path
+        if pilimg.format == "MPEG":
+            raise NotAnImageError, path
         width, height = pilimg.size
         location = unicode(os.path.realpath(path.encode(self.codeset)),
                            self.codeset)