# DEBUG: print("DEBUG: Fetching friendica blocks from domain:", domain)
blocked = list()
- try:
- doc = bs4.BeautifulSoup(
- network.fetch_response(
- domain,
- "/friendica",
- network.web_headers,
- (config.get("connection_timeout"), config.get("read_timeout"))
- ).text,
- "html.parser",
- )
- except BaseException as exception:
- print("WARNING: Failed to fetch /friendica from domain:", domain, exception)
- instances.update_last_error(domain, exception)
- return {}
+ doc = bs4.BeautifulSoup(
+ network.fetch_response(
+ domain,
+ "/friendica",
+ network.web_headers,
+ (config.get("connection_timeout"), config.get("read_timeout"))
+ ).text,
+ "html.parser",
+ )
+ print(f"DEBUG: doc[]='{type(doc)}'")
blocklist = doc.find(id="about_blocklist")