[scanner] Catch OSError too when checking for libtool
[gnome.gobject-introspection] / giscanner / utils.py
index 00d7a88..3bbf33b 100644 (file)
@@ -97,7 +97,7 @@ def get_libtool_command(options):
     try:
         subprocess.check_call(['libtool', '--version'],
                               stdout=open(os.devnull))
-    except subprocess.CalledProcessError, e:
+    except:
         # If libtool's not installed, assume we don't need it
         return None