]> git.mxchange.org Git - fba.git/commitdiff
Fixed:
authorRoland Häder <roland@mxchange.org>
Mon, 12 Jun 2023 23:43:11 +0000 (01:43 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 12 Jun 2023 23:43:11 +0000 (01:43 +0200)
- ops, wrong way!

fba/networks/pleroma.py

index b32c3274124d5f8f1690bf61becf807fbd60110e..58c7301e63edfc85f195ac9e3c9b7976eee70ae3 100644 (file)
@@ -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)