summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/modules/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/modules/common.py b/lib/spack/spack/modules/common.py
index 6feed2938c..86abaae7c3 100644
--- a/lib/spack/spack/modules/common.py
+++ b/lib/spack/spack/modules/common.py
@@ -505,7 +505,7 @@ class BaseContext(tengine.Context):
try:
configure_args = getattr(pkg, attr)()
return ' '.join(configure_args)
- except (AttributeError, IOError, KeyError):
+ except (AttributeError, IOError, KeyError, NameError):
# The method doesn't exist in the current spec,
# or it's not usable
pass