Add NameError to exceptions caught from configure_args in module generation (#7173)

This commit is contained in:
becker33 2018-02-02 13:35:51 -08:00 committed by GitHub
parent 41e6eb130c
commit e905f8cf83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -505,7 +505,7 @@ def configure_options(self):
try: try:
configure_args = getattr(pkg, attr)() configure_args = getattr(pkg, attr)()
return ' '.join(configure_args) return ' '.join(configure_args)
except (AttributeError, IOError, KeyError): except (AttributeError, IOError, KeyError, NameError):
# The method doesn't exist in the current spec, # The method doesn't exist in the current spec,
# or it's not usable # or it's not usable
pass pass