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

Fix AttributeError: 'Sphinx' object has no attribute 'debug' #5

Merged
merged 1 commit into from
Apr 3, 2019
Merged

Fix AttributeError: 'Sphinx' object has no attribute 'debug' #5

merged 1 commit into from
Apr 3, 2019

Conversation

coldfix
Copy link
Contributor

@coldfix coldfix commented Apr 3, 2019

Hi again,

while summarizing a module that has invalid formatting in some docstring, it raises an exception (with sphinx 2.0):

  File "/home/thomas/.local/venvs/madgui/lib/python3.7/site-packages/autodocsumm/__init__.py", line 117, in get_grouped_documenters
    self.env.app.debug('[autodoc] module analyzer failed: %s', err)
AttributeError: 'Sphinx' object has no attribute 'debug'

I believe the debug attribute changed between sphinx versions, and it now just uses a global logger = logging.getLogger(__name__), so we should as well.

@Chilipp
Copy link
Owner

Chilipp commented Apr 3, 2019

You are completely right, thank you again

@Chilipp Chilipp merged commit d9a1a09 into Chilipp:master Apr 3, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants