diff --git a/src/ansible_module/__init__.py b/src/ansible_module/__init__.py index 245661d..b3f4756 100644 --- a/src/ansible_module/__init__.py +++ b/src/ansible_module/__init__.py @@ -1 +1 @@ -__version__ = "0.1.1.1" +__version__ = "0.1.2" diff --git a/src/ansible_module/update_doc.py b/src/ansible_module/update_doc.py index e4cfad2..652c4e5 100755 --- a/src/ansible_module/update_doc.py +++ b/src/ansible_module/update_doc.py @@ -11,7 +11,12 @@ regex = re.compile("DOCUMENTATION *= *r?(?P\"{3}|'{3})(---)?.*?(?P=quote) def main(): - for modfile in moduledir.iterdir(): + try: + modules = moduledir.iterdir() + except: + print("failed to find modules") + return + for modfile in modules: if modfile.name in ("__init__.py", "__pycache__", "unit.py.example"): continue mod = importlib.import_module(".".join((modfile.parts[:-1]) + (modfile.stem,)))