mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 16:53:07 +02:00
...
This commit is contained in:
parent
2d6ad84690
commit
5134d7568c
1 changed files with 3 additions and 3 deletions
|
|
@ -45,6 +45,9 @@ def run_checks(container):
|
|||
errors.extend(run_checkers(check_xml_parsing, html_items))
|
||||
errors.extend(run_checkers(check_raster_images, raster_images))
|
||||
|
||||
if errors:
|
||||
return errors
|
||||
|
||||
# cssutils is not thread safe
|
||||
for name, mt, raw in stylesheets:
|
||||
if not raw:
|
||||
|
|
@ -52,9 +55,6 @@ def run_checks(container):
|
|||
continue
|
||||
errors.extend(check_css_parsing(name, raw))
|
||||
|
||||
if errors:
|
||||
return errors
|
||||
|
||||
for name, mt, raw in html_items + xml_items:
|
||||
errors.extend(check_encoding_declarations(name, container))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue