Merged in [19892] from rjsparks@nostrum.com:

Guard against reference sections without names.
 - Legacy-Id: 19896
Note: SVN reference [19892] has been migrated to Git commit d4fbaa2297
This commit is contained in:
Robert Sparks 2022-01-31 16:40:10 +00:00
commit 5c0e5a3064

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