From 6e41febe26e65b6233bd47684a0b1a9781c1f804 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 29 Nov 2016 21:28:07 +0000 Subject: Raise error on unrecognised list type --- mammoth/styles/parser/document_matcher_parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mammoth/styles/parser/document_matcher_parser.py') 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)) -- cgit v1.2.3