From 111cdb2a94d69c6fb4d34e2677f604fcd5e88ffc Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Wed, 17 Feb 2010 14:53:07 -0200 Subject: [PATCH] [giscanner] Catch CalledProcessError and OSError Instead of catching all errors, including AttributeError, TypeError and NameError. --- giscanner/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2