From: Roland Häder Date: Sat, 11 May 2024 19:36:59 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=712162b666c20bd17214d5bc085bb03248475400;p=fba.git Continued: - dict element 'domain' will always be there, no double-redundant checks --- 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