scons: Used wrong exception class.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 4 Sep 2009 18:38:35 +0000 (19:38 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 4 Sep 2009 18:38:35 +0000 (19:38 +0100)
scons/llvm.py

index 53cf71c03f7b0d067ee9fbeb34e9836ed04919e4..702f1e354f6352fb6892166f33a2b27f24e9ae97 100644 (file)
@@ -58,7 +58,7 @@ def generate(env):
     if env.Detect('llvm-config'):
         try:
             env['LLVM_VERSION'] = env.backtick('llvm-config --version')
-        except NameError:
+        except AttributeError:
             env['LLVM_VERSION'] = 'X.X'
 
         env.ParseConfig('llvm-config --cppflags')