]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 18 May 2023 21:54:23 +0000 (23:54 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 18 May 2023 21:54:23 +0000 (23:54 +0200)
- some instances don't have a block list

fetch_blocks.py

index 6b0e060e05dcac8adabf17215fd0c4d603ee300b..343b67baf3f531cbf641f69e669cff1fc23c6fc8 100644 (file)
@@ -27,6 +27,10 @@ for blocker, software in fba.c.fetchall():
                 f"https://{blocker}/nodeinfo/2.1.json", headers=fba.headers, timeout=5
             ).json()["metadata"]["federation"]
 
+            if "enabled" in federation:
+                # NOISY-DEBUG: print("DEBUG: Instance has no block list to analyze:", blocker)
+                continue
+
             if "mrf_simple" in federation:
                 for block_level, blocks in (
                     {**federation["mrf_simple"],