]> git.mxchange.org Git - fba.git/blobdiff - fba/federation/friendica.py
WIP:
[fba.git] / fba / federation / friendica.py
index 1a37dfece26d4e27a11e78cdbaff2a5a2c659ed5..4dd72fb16de1e641aeca168927ff9af031fbebad 100644 (file)
@@ -31,20 +31,16 @@ def fetch_blocks(domain: str) -> dict:
     # 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")