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:
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user