Edit Book: Check Book: Do not run the rest of the checks if parsing errors are found, to avoid the checkers from raising unhandled errors

This commit is contained in:
Kovid Goyal 2014-08-02 12:52:21 +05:30
parent 40540fae6d
commit 7a27819715

View File

@ -52,6 +52,9 @@ def run_checks(container):
continue continue
errors.extend(check_css_parsing(name, raw)) errors.extend(check_css_parsing(name, raw))
if errors:
return errors
for name, mt, raw in html_items + xml_items: for name, mt, raw in html_items + xml_items:
errors.extend(check_encoding_declarations(name, container)) errors.extend(check_encoding_declarations(name, container))