scons: Used wrong exception class.

This commit is contained in:
José Fonseca
2009-09-04 19:38:35 +01:00
parent b9f56078cd
commit 9216b4e7be

View 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')