diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-04-23 14:55:02 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-04-29 12:16:06 +0200 |
commit | bf98ffca9ee67a6a942b9abf96b536692370cf03 (patch) | |
tree | d46378781f8ee4bf288f4c47de6ebc2b618a2d14 /mesonbuild/compilers/c.py | |
parent | ccc4ce28cc9077d77a0bc9e72b1177eba1be7186 (diff) | |
download | meson-bf98ffca9ee67a6a942b9abf96b536692370cf03.zip meson-bf98ffca9ee67a6a942b9abf96b536692370cf03.tar.gz meson-bf98ffca9ee67a6a942b9abf96b536692370cf03.tar.bz2 |
Fix blind exceptions
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r-- | mesonbuild/compilers/c.py | 2 |
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)): |