aboutsummaryrefslogtreecommitdiff
path: root/mammoth
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-29 21:28:07 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-29 21:33:41 +0000
commit6e41febe26e65b6233bd47684a0b1a9781c1f804 (patch)
treed2368ad41a784e7edf4262fb5ccb28a112f75a46 /mammoth
parent8490b30a81597c75848f87611ca9ca011851db12 (diff)
Raise error on unrecognised list type
Diffstat (limited to 'mammoth')
-rw-r--r--mammoth/styles/parser/document_matcher_parser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mammoth/styles/parser/document_matcher_parser.py b/mammoth/styles/parser/document_matcher_parser.py
index 6d69a8f..5f85a18 100644
--- a/mammoth/styles/parser/document_matcher_parser.py
+++ b/mammoth/styles/parser/document_matcher_parser.py
@@ -70,5 +70,4 @@ def _parse_list_type(tokens):
elif list_type == "unordered-list":
return False
else:
- pass
- # TODO: raise
+ raise LineParseError("Unrecognised list type: {0}".format(list_type))