diff --git a/autogenerate_config_docs/autohelp.py b/autogenerate_config_docs/autohelp.py index b402d8f8..00cfba83 100755 --- a/autogenerate_config_docs/autohelp.py +++ b/autogenerate_config_docs/autohelp.py @@ -36,7 +36,10 @@ except Exception: pass sys.path.insert(0, '.') -from hooks import HOOKS # noqa +try: + from hooks import HOOKS # noqa +except ImportError: + pass EXTENSIONS = ['oslo.cache',