diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-29 21:28:07 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-29 21:33:41 +0000 |
| commit | 6e41febe26e65b6233bd47684a0b1a9781c1f804 (patch) | |
| tree | d2368ad41a784e7edf4262fb5ccb28a112f75a46 /mammoth/styles | |
| parent | 8490b30a81597c75848f87611ca9ca011851db12 (diff) | |
Raise error on unrecognised list type
Diffstat (limited to 'mammoth/styles')
| -rw-r--r-- | mammoth/styles/parser/document_matcher_parser.py | 3 |
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)) |
