mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Avoid logging error as a warning
This commit is contained in:
parent
36ea4abb48
commit
e5edd472d6
@ -92,9 +92,11 @@ def test_single_page(input_path, lang):
|
|||||||
logging.warning('Found %d duplicate anchor points' % duplicate_anchor_points)
|
logging.warning('Found %d duplicate anchor points' % duplicate_anchor_points)
|
||||||
|
|
||||||
if links_to_nowhere:
|
if links_to_nowhere:
|
||||||
logging.warning(f'Found {links_to_nowhere} links to nowhere in {lang}')
|
|
||||||
if lang == 'en': # TODO: check all languages again
|
if lang == 'en': # TODO: check all languages again
|
||||||
|
logging.error(f'Found {links_to_nowhere} links to nowhere in {lang}')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
else:
|
||||||
|
logging.warning(f'Found {links_to_nowhere} links to nowhere in {lang}')
|
||||||
|
|
||||||
if len(anchor_points) <= 10:
|
if len(anchor_points) <= 10:
|
||||||
logging.error('Html parsing is probably broken')
|
logging.error('Html parsing is probably broken')
|
||||||
|
Loading…
Reference in New Issue
Block a user