aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/c.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-05-02 23:30:29 +0300
committerGitHub <noreply@github.com>2019-05-02 23:30:29 +0300
commit1f4023fa47803458700e52352dec51f3f85fa6c1 (patch)
treee4b2790ff92404ad6f939832922770b9a359908e /mesonbuild/compilers/c.py
parent06bfc2dab61c5bf79265a8db777b02732ee86ecf (diff)
parent74b535fea74843c83944e9f22d40e6259ca105b8 (diff)
downloadmeson-1f4023fa47803458700e52352dec51f3f85fa6c1.zip
meson-1f4023fa47803458700e52352dec51f3f85fa6c1.tar.gz
meson-1f4023fa47803458700e52352dec51f3f85fa6c1.tar.bz2
Merge pull request #5311 from mensinda/flake8Plugins
Added flake8 plugins and some code fixes
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r--mesonbuild/compilers/c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index 54ca894..8da0518 100644
--- a/mesonbuild/compilers/c.py
+++ b/mesonbuild/compilers/c.py
@@ -1036,7 +1036,7 @@ class CCompiler(Compiler):
elf_class = 2
else:
elf_class = 1
- except:
+ except (MesonException, KeyError): # TODO evaluate if catching KeyError is wanted here
elf_class = 0
# Search in the specified dirs, and then in the system libraries
for d in itertools.chain(extra_dirs, self.get_library_dirs(env, elf_class)):