An open source, non-profit web search engine
Catch bad netloc
Daoud Clarke638f6ab538a2
diff --git a/mwmbl/indexer/update_urls.py b/mwmbl/indexer/update_urls.pyindex e1a5746..7218078 100644--- a/mwmbl/indexer/update_urls.py+++ b/mwmbl/indexer/update_urls.py@@ -112,6 +112,10 @@ def process_link(user_id_hash: str, crawled_page_domain: str, link: Link, timestlogger.debug(f"Couldn't parse link: {link.url}")return+ if not isinstance(parsed_link.netloc, str):+ logger.debug(f"Couldn't parse netloc: {parsed_link}")+ return+if is_domain_blacklisted(parsed_link.netloc, blacklist_domains):logger.debug(f"Excluding link for blacklisted domain: {parsed_link}")return