EnvModules : narrowing the type of exceptions being "handled"
This commit is contained in:
parent
7fc0b1ebd2
commit
c352249e30
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue