print(link_line) | print(link_line) | ||||
try: | try: | ||||
title, content = extract_page(url) | title, content = extract_page(url) | ||||
except ( | |||||
requests.adapters.SSLError, | |||||
lxml.etree.XMLSyntaxError, | |||||
requests.exceptions.ConnectionError, | |||||
) as e: | |||||
except (lxml.etree.XMLSyntaxError, httpx.exceptions.HTTPError,) as e: | |||||
print(f"WARNING: {e}") | print(f"WARNING: {e}") | ||||
title, content = "", "" | title, content = "", "" | ||||
cache_path = os.path.join(CACHE_PATH, hash_url) | cache_path = os.path.join(CACHE_PATH, hash_url) |