Commit 3bf1cd8
authored
BUG: Fix a fatal error preventing documentation generation in some cases (#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` block1 parent 4eb45b5 commit 3bf1cd8
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
690 | | - | |
691 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
692 | 693 | | |
693 | 694 | | |
694 | 695 | | |
| |||
0 commit comments