diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-08-29 15:11:56 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-08-29 15:11:56 +0100 |
| commit | 3d94e243d6c56dfc083f0be67a246f988e27ddec (patch) | |
| tree | c098ca3aed54a7c1ce278cabe5ee8de4db0346f5 /mammoth | |
| parent | 150f1cb9634ab13ef64b9d74fcdde428053835bc (diff) | |
Handle missing level in the same way as missing num
Diffstat (limited to 'mammoth')
| -rw-r--r-- | mammoth/docx/numbering_xml.py | 2 |
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) |
