You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python
Python 3.7.5 (default, Nov 1 2019, 02:16:32)
[Clang 11.0.0 (clang-1100.0.33.8)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ansidoc import Ansidoc
>>> ansidoc = Ansidoc(dirpath='/full/path/to/ansible/project/roles')
>>> ansidoc.run()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/ansidoc/ansidoclib.py", line 118, in run
self._make_role_doc(os.path.join(self.dirpath, role))
File "/usr/local/lib/python3.7/site-packages/ansidoc/ansidoclib.py", line 62, in _make_role_doc
os.path.join(rolepath, "docs"), self.verbose)
File "/usr/local/lib/python3.7/site-packages/ansidoc/helpers.py", line 32, in load_yml_files
return content
UnboundLocalError: local variable 'content' referenced before assignment
ansidoc -p /full/path/to/ansible/project/roles
Traceback (most recent call last):
File "/usr/local/bin/ansidoc", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/ansidoc/__main__.py", line 33, in main
exit_code = cli.run(**vars(args))
File "/usr/local/lib/python3.7/site-packages/ansidoc/cli.py", line 53, in run
ansidoc.run()
File "/usr/local/lib/python3.7/site-packages/ansidoc/ansidoclib.py", line 114, in run
if len(exclude_list) > 0:
TypeError: object of type 'NoneType' has no len()
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: