EnvModules : narrowing the type of exceptions being "handled"

This commit is contained in:
alalazo 2016-04-05 14:55:05 +02:00
parent 7fc0b1ebd2
commit c352249e30

View file

@ -167,10 +167,11 @@ def write(self):
package = self.spec[item].package package = self.spec[item].package
package.setup_dependent_package(self.pkg.module, self.spec) package.setup_dependent_package(self.pkg.module, self.spec)
package.setup_dependent_environment(spack_env, env, self.spec) package.setup_dependent_environment(spack_env, env, self.spec)
except: except KeyError as e:
# The extends was conditional, so it doesn't count here # The extends was conditional, so it doesn't count here
# eg: extends('python', when='+python') # eg: extends('python', when='+python')
pass tty.debug(str(e))
# Package-specific environment modifications # Package-specific environment modifications
self.spec.package.setup_environment(spack_env, env) self.spec.package.setup_environment(spack_env, env)