diff options
author | Johan Dahlin <johan@gnome.org> | 2010-02-17 14:53:07 -0200 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-02-17 14:53:07 -0200 |
commit | 111cdb2a94d69c6fb4d34e2677f604fcd5e88ffc (patch) | |
tree | c500192999f90264e2c8c01f94688636cc40aa94 /giscanner/utils.py | |
parent | a9e1429efb898b54b34e143a0d62ccf4e33c92be (diff) | |
download | gobject-introspection-111cdb2a94d69c6fb4d34e2677f604fcd5e88ffc.tar.gz |
[giscanner] Catch CalledProcessError and OSError
Instead of catching all errors, including AttributeError,
TypeError and NameError.
Diffstat (limited to 'giscanner/utils.py')
-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 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 |