)
logger.debug("data[]='%s'", type(data))
- if "error_message" not in data:
- logger.warning("domain='%s' causes error during API query: '%s' - SKIPPED!", domain, data['error_message'])
+ if "error_message" in data:
+ logger.warning("domain='%s' causes error during API query: '%s' - SKIPPED!", domain, data["error_message"])
break
elif "data" not in data["json"]:
logger.warning("domain='%s' has no 'data' element returned - SKIPPED!", domain)
logger.debug("record[%s] does not contain element 'host' - SKIPPED", mode2)
continue
elif record[mode2]["host"] == domain:
- logger.debug("record[%s]='%s' matches domain='%s' - SKIPPED!", mode2, record[mode2]["hnost"], domain)
+ logger.debug("record[%s]='%s' matches domain='%s' - SKIPPED!", mode2, record[mode2]["host"], domain)
continue
logger.debug("record[%s][host]='%s'", mode2, record[mode2]["host"])