[gobject-introspection] [scanner] Catch OSError too when checking for libtool
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] [scanner] Catch OSError too when checking for libtool
- Date: Wed, 17 Feb 2010 16:22:17 +0000 (UTC)
commit a9e1429efb898b54b34e143a0d62ccf4e33c92be
Author: Colin Walters <walters verbum org>
Date: Wed Feb 17 11:18:18 2010 -0500
[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.
giscanner/utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/utils.py b/giscanner/utils.py
index 00d7a88..3bbf33b 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]