From 9216b4e7be942fed432ceb42a4337d7298d0bc6c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 4 Sep 2009 19:38:35 +0100 Subject: [PATCH] scons: Used wrong exception class. --- scons/llvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scons/llvm.py b/scons/llvm.py index 53cf71c03f7..702f1e354f6 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -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') -- 2.30.2