]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 11 May 2024 19:36:59 +0000 (21:36 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 11 May 2024 19:36:59 +0000 (21:36 +0200)
- dict element 'domain' will always be there, no double-redundant checks

fba/networks/mastodon.py

index b0c22447f19f09d5d270995055111aae2312f5e5..704d4f13847c42064260612c48828804075076d6 100644 (file)
@@ -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