aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-08-29 15:11:56 +0100
committerMichael Williamson <mike@zwobble.org>2016-08-29 15:11:56 +0100
commit3d94e243d6c56dfc083f0be67a246f988e27ddec (patch)
treec098ca3aed54a7c1ce278cabe5ee8de4db0346f5 /mammoth/docx
parent150f1cb9634ab13ef64b9d74fcdde428053835bc (diff)
Handle missing level in the same way as missing num
Diffstat (limited to 'mammoth/docx')
-rw-r--r--mammoth/docx/numbering_xml.py2
1 files changed, 1 insertions, 1 deletions
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)