- dict element 'domain' will always be there, no double-redundant checks
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