diff options
author | becker33 <becker33@llnl.gov> | 2018-02-02 13:35:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-02 13:35:51 -0800 |
commit | e905f8cf8388c7b5b800fa0be4f151d85fb608c1 (patch) | |
tree | 8623a83fe7b6ddf0edf2965057f6426db21024c1 | |
parent | 41e6eb130ce605e5ad1c07bf3da97b9c90cca53c (diff) | |
download | spack-e905f8cf8388c7b5b800fa0be4f151d85fb608c1.tar.gz spack-e905f8cf8388c7b5b800fa0be4f151d85fb608c1.tar.bz2 spack-e905f8cf8388c7b5b800fa0be4f151d85fb608c1.tar.xz spack-e905f8cf8388c7b5b800fa0be4f151d85fb608c1.zip |
Add NameError to exceptions caught from configure_args in module generation (#7173)
-rw-r--r-- | lib/spack/spack/modules/common.py | 2 |
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 |