Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fix a fatal error preventing documentation generation in some ca…
…ses (#302) * 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. * Use `try-else` block
- Loading branch information