From 967ddffa548f610101d9ef74df19f3aecafaed70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 18 May 2023 23:54:23 +0200 Subject: [PATCH] Continued: - some instances don't have a block list --- fetch_blocks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fetch_blocks.py b/fetch_blocks.py index 6b0e060..343b67b 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -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"], -- 2.39.5