Catch errors from buggy PIL plugins.
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 18 Sep 2004 09:05:45 +0000 (09:05 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 18 Sep 2004 09:05:45 +0000 (09:05 +0000)
src/cmdline/kofoto

index 48d1309..bcebd58 100755 (executable)
@@ -370,7 +370,8 @@ def cmdInspectLocations(env, args):
                 try:
                     PILImage.open(env.to_l(filepath))
                     env.out("[Unregistered] %s\n" % env.to_l(filepath))
-                except IOError:
+#                except IOError:
+                except: # Work-around for buggy PIL.
                     env.out("[Non-image]    %s\n" % env.to_l(filepath))