Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for autodoc on empty module #31

Open
krystophny opened this issue Nov 1, 2020 · 1 comment
Open

Error for autodoc on empty module #31

krystophny opened this issue Nov 1, 2020 · 1 comment

Comments

@krystophny
Copy link

Running sphinx with fortran_autodoc on an empty module fails at

parsing fortran sources...{}

Exception occurred:
  File ".../sphinx-fortran/sphinxfortran/fortran_autodoc.py", line 347, in scan
    m = block['vardescsearch'](line)
KeyError: 'vardescsearch'

Quick fix: add a check if 'vardescsearch' in block.keys(): before line 347 in fortran_autodoc.py. A better solution would be to unify the initialization of block for all cases.

@krystophny
Copy link
Author

See itpplasma@9568689

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant