summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-02-17 14:53:07 -0200
committerJohan Dahlin <johan@gnome.org>2010-02-17 14:53:07 -0200
commit111cdb2a94d69c6fb4d34e2677f604fcd5e88ffc (patch)
treec500192999f90264e2c8c01f94688636cc40aa94
parenta9e1429efb898b54b34e143a0d62ccf4e33c92be (diff)
downloadgobject-introspection-111cdb2a94d69c6fb4d34e2677f604fcd5e88ffc.tar.gz
[giscanner] Catch CalledProcessError and OSError
Instead of catching all errors, including AttributeError, TypeError and NameError.
-rw-r--r--giscanner/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/utils.py b/giscanner/utils.py
index 3bbf33be..1bd23fc0 100644
--- a/giscanner/utils.py
+++ b/giscanner/utils.py
@@ -97,7 +97,7 @@ def get_libtool_command(options):
try:
subprocess.check_call(['libtool', '--version'],
stdout=open(os.devnull))
- except:
+ except (subprocess.CalledProcessError, OSError), e:
# If libtool's not installed, assume we don't need it
return None