We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc4c5dc + d4fbaa2 commit bbd2051Copy full SHA for bbd2051
1 file changed
ietf/utils/xmldraft.py
@@ -69,11 +69,12 @@ def _document_name(self, anchor):
69
70
def _reference_section_type(self, section_name):
71
"""Determine reference type from name of references section"""
72
- section_name = section_name.lower()
73
- if 'normative' in section_name:
74
- return self.REF_TYPE_NORMATIVE
75
- elif 'informative' in section_name:
76
- return self.REF_TYPE_INFORMATIVE
+ if section_name:
+ section_name = section_name.lower()
+ if 'normative' in section_name:
+ return self.REF_TYPE_NORMATIVE
+ elif 'informative' in section_name:
77
+ return self.REF_TYPE_INFORMATIVE
78
return self.REF_TYPE_UNKNOWN
79
80
def get_refs(self):
0 commit comments