From: Johan Dahlin Date: Wed, 17 Feb 2010 16:53:07 +0000 (-0200) Subject: [giscanner] Catch CalledProcessError and OSError X-Git-Tag: GOBJECT_INTROSPECTION_0_6_8~5 X-Git-Url: http://git.roojs.org/?p=gnome.gobject-introspection;a=commitdiff_plain;h=111cdb2a94d69c6fb4d34e2677f604fcd5e88ffc [giscanner] Catch CalledProcessError and OSError Instead of catching all errors, including AttributeError, TypeError and NameError. --- diff --git a/giscanner/utils.py b/giscanner/utils.py index 3bbf33b..1bd23fc 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