Browse Source

Fixed AttributeError on doc_status.py

SamuelDeboni 5 years ago
parent
commit
35d22e414f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      doc/tools/doc_status.py

+ 2 - 1
doc/tools/doc_status.py

@@ -259,7 +259,8 @@ class ClassStatus:
                     status.progresses[tag.tag].increment(len(descr.text.strip()) > 0)
             elif tag.tag in ['constants', 'members']:
                 for sub_tag in list(tag):
-                    status.progresses[tag.tag].increment(len(sub_tag.text.strip()) > 0)
+                    if not sub_tag.text is None:
+                        status.progresses[tag.tag].increment(len(sub_tag.text.strip()) > 0)
 
             elif tag.tag in ['tutorials']:
                 pass  # Ignore those tags for now