cnt = 0
for row in domains:
logger.debug("row[]='%s'", type(row))
- if not args.force and instances.is_recent(row["domain"], "last_nodeinfo"):
- logger.debug("row[domain]='%s' has been recently checked - SKIPPED!", row["domain"])
- continue
- elif blacklist.is_blacklisted(row["domain"]):
+ if blacklist.is_blacklisted(row["domain"]):
logger.debug("row[domain]='%s' is blacklisted - SKIPPED!", row["domain"])
continue
+ elif not args.force and instances.is_recent(row["domain"], "last_nodeinfo"):
+ logger.debug("row[domain]='%s' has been recently checked - SKIPPED!", row["domain"])
+ continue
try:
logger.info("Checking nodeinfo for row[domain]='%s',row[software]='%s' (%s%%) ...", row["domain"], row["software"], "{:5.1f}".format(cnt / len(domains) * 100))
raise ValueError(f"Parameter column[]='{type(column)}' is not of type 'str'")
elif not column.startswith("last_"):
raise ValueError(f"Parameter column='{column}' is not expected")
+ elif blacklist.is_blacklisted(domain):
+ raise ValueError(f"domain='{domain}' is blacklisted but function was invoked")
elif not is_registered(domain):
logger.debug("domain='%s' is not registered, returning False - EXIT!", domain)
return False