diff options
author | Colin Walters <walters@verbum.org> | 2010-02-17 11:18:18 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-02-17 11:18:18 -0500 |
commit | a9e1429efb898b54b34e143a0d62ccf4e33c92be (patch) | |
tree | 1f8c0a63d697b9634ceecb9b78cc72f80cf89b2c /giscanner | |
parent | 965ff4c6583fd1bab80858ecde419bfc20ad540b (diff) | |
download | gobject-introspection-a9e1429efb898b54b34e143a0d62ccf4e33c92be.tar.gz |
[scanner] Catch OSError too when checking for libtool
If we don't have permission to execute the libtool binary, we'd
just throw here which is wrong. Fix this by catching all
exceptions.
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/utils.py b/giscanner/utils.py index 00d7a885..3bbf33be 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 subprocess.CalledProcessError, e: + except: # If libtool's not installed, assume we don't need it return None |