From 3d94e243d6c56dfc083f0be67a246f988e27ddec Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 29 Aug 2016 15:11:56 +0100 Subject: Handle missing level in the same way as missing num --- mammoth/docx/numbering_xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mammoth') diff --git a/mammoth/docx/numbering_xml.py b/mammoth/docx/numbering_xml.py index ebac1c8..f7f98e0 100644 --- a/mammoth/docx/numbering_xml.py +++ b/mammoth/docx/numbering_xml.py @@ -56,4 +56,4 @@ class Numbering(object): if num is None: return None else: - return num[level] + return num.get(level) -- cgit v1.2.3