- it was imported from previous code and seem not to work everywhere
- so let's remove the non-working part
if "mrf_simple" in data:
logger.debug("Found mrf_simple in API response from domain='%s'", domain)
found = True
- for block_level, blocklist in (
- {
- **data["mrf_simple"],
- **{
- "quarantined_instances": data["quarantined_instances"]
- }
- }
- ).items():
+ for block_level, blocklist in data["mrf_simple"].items():
logger.debug("block_level='%s', blocklist()=%d", block_level, len(blocklist))
block_level = tidyup.domain(block_level) if block_level != "" else None
logger.debug("block_level='%s' - AFTER!", block_level)