From: Roland Häder Date: Mon, 12 Jun 2023 23:43:11 +0000 (+0200) Subject: Fixed: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=672868ffae4cddecfe7a4911ba6df187ec94f426;p=fba.git Fixed: - ops, wrong way! --- diff --git a/fba/networks/pleroma.py b/fba/networks/pleroma.py index b32c327..58c7301 100644 --- a/fba/networks/pleroma.py +++ b/fba/networks/pleroma.py @@ -519,11 +519,6 @@ def fetch_blocks_from_about(domain: str) -> dict: 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" : [], @@ -531,6 +526,11 @@ def fetch_blocks_from_about(domain: str) -> dict: "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)