Add NameError to exceptions caught from configure_args in module generation (#7173)
This commit is contained in:
parent
41e6eb130c
commit
e905f8cf83
@ -505,7 +505,7 @@ def configure_options(self):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user