From 712162b666c20bd17214d5bc085bb03248475400 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 11 May 2024 21:36:59 +0200 Subject: [PATCH] Continued: - dict element 'domain' will always be there, no double-redundant checks --- fba/networks/mastodon.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fba/networks/mastodon.py b/fba/networks/mastodon.py index b0c2244..704d4f1 100644 --- a/fba/networks/mastodon.py +++ b/fba/networks/mastodon.py @@ -176,10 +176,6 @@ def fetch_blocks(domain: str) -> list: if not isinstance(block, dict): logger.debug("block[]='%s' is of type 'dict' - SKIPPED!", type(block)) continue - elif "domain" not in block: - logger.debug("block='%s'", block) - logger.warning("block()=%d does not contain element 'domain' - SKIPPED!", len(block)) - continue elif not domain_helper.is_wanted(block["domain"]): logger.debug("block[domain]='%s' is not wanted - SKIPPED!", block["domain"]) continue -- 2.39.5