instances.update_last_error(domain, exception)
break
- # DEBUG: print(f"DEBUG: doc[]='{type(doc)}'")
- if doc is None:
- print(f"WARNING: Cannot fetch any /about pages for domain='{domain}' - EXIT!")
- return blocklist
-
blocklist = {
"Suspended servers": [],
"Filtered media" : [],
"Silenced servers" : [],
}
+ # DEBUG: print(f"DEBUG: doc[]='{type(doc)}'")
+ if doc is None:
+ print(f"WARNING: Cannot fetch any /about pages for domain='{domain}' - EXIT!")
+ return blocklist
+
for header in doc.find_all("h2"):
header_text = tidyup.reason(header.text)