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 a fatal error preventing documentation generation in some cases #302

Merged
merged 2 commits into from
Jun 22, 2024

Commits on Jun 22, 2024

  1. Update __init__.py

    Got a fatal exception on this line, which prevented the generation of the documentation.
    
    The problem is that some variable is initialized in a try bloc but still used out of it afterwards.
    If the getattr fails line 682 - which was my problem - then the variable is used without being initialized, which lead to fatal error.
    mn3mos authored and kernc committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    864aa3b View commit details
    Browse the repository at this point in the history
  2. Use try-else block

    kernc committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    a37fd21 View commit details
    Browse the repository at this point in the history