Guard against reference sections without names. Commit ready for merge.

- Legacy-Id: 19892
This commit is contained in:
Robert Sparks 2022-01-29 22:49:08 +00:00
parent 1c1d9e885a
commit d4fbaa2297

View file

@ -69,6 +69,7 @@ class XMLDraft(Draft):
def _reference_section_type(self, section_name):
"""Determine reference type from name of references section"""
if section_name:
section_name = section_name.lower()
if 'normative' in section_name:
return self.REF_TYPE_NORMATIVE