logger.debug("item[%s]='%s'", type(item), item)
domain = item.link.split("=")[1]
domain = tidyup.domain(domain) if domain not in[None, ""] else None
-
logger.debug("domain='%s' - AFTER!", domain)
+
if domain in [None, ""]:
logger.debug("domain[%s]='%s' is empty after tidyup.domain() - SKIPPED!", type(domain), domain)
continue
for href in element["href"].split(","):
logger.debug("href[%s]='%s' - BEFORE!", type(href), href)
domain = tidyup.domain(href) if href not in [None, ""] else None
-
logger.debug("domain='%s' - AFTER!", domain)
+
if domain in [None, ""]:
logger.debug("domain[%s]='%s' is empty after tidyup.domain(): href='%s' - SKIPPED!", type(domain), domain, href)
continue
for row in rows:
logger.debug("row[]='%s'", type(row))
domain = tidyup.domain(row.contents[0]) if row.contents[0] not in [None, ""] else None
-
logger.debug("domain='%s' - AFTER!", domain)
+
if domain in [None, ""]:
logger.debug("domain[%s]='%s' is empty after tidyup.domain(): row.contents[0]='%s' - SKIPPED!", type(domain), domain, row.contents[0])
continue
logger.debug("instance='%s' - AFTER!", instance)
if instance in [None, ""]:
- logger.warning("instance[%s]='%s' is empty after tidyup.domain(), domain='%s'", type(instance), instance, domain)
+ logger.debug("instance[%s]='%s' is empty after tidyup.domain(), domain='%s'", type(instance), instance, domain)
continue
elif ".." in instance:
logger.warning("instance='%s' contains double-dot, removing ...", instance)
logger.debug("blocked='%s'", blocked)
if blocked in [None, ""]:
- logger.warning("blocked[%s]='%s' is empty after tidyup.domain(): tag.contents[0]='%s' - SKIPPED!", type(blocked), blocked, tag.contents[0])
+ logger.debug("blocked[%s]='%s' is empty after tidyup.domain(): tag.contents[0]='%s' - SKIPPED!", type(blocked), blocked, tag.contents[0])
continue
elif not domain_helper.is_wanted(blocked):
logger.debug("blocked='%s' is not wanted - SKIPPED!", blocked)
logger.debug("blocked='%s' - AFTER!", blocked)
if blocked in [None, ""]:
- logger.warning("blocked[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s' - SKIPPED!", type(blocked), blocked, domain, block_level)
+ logger.debug("blocked[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s' - SKIPPED!", type(blocked), blocked, domain, block_level)
continue
elif validators.domain(blocked, rfc_2782=True) and blacklist.is_blacklisted(blocked):
logger.debug("blocked='%s' is blacklisted - SKIPPED!")
logger.debug("blocked='%s' - AFTER!", blocked)
if blocked in [None, ""]:
- logger.warning("blocked[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s'", type(blocked), blocked, domain, block_level)
+ logger.debug("blocked[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s'", type(blocked), blocked, domain, block_level)
continue
elif not domain_helper.is_wanted(blocked):
logger.debug("blocked='%s' is not wanted - SKIPPED!", blocked)
logger.debug("blocked='%s',reason='%s' - AFTER!", blocked, reason)
if blocked in [None, ""]:
- logger.warning("blocked[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s'", type(blocked), blocked, domain, block_level)
+ logger.debug("blocked[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s'", type(blocked), blocked, domain, block_level)
continue
logger.debug("Checking %d blockdict records ...", len(blockdict))
logger.debug("cleaned='%s',reason='%s' - AFTER!", cleaned, reason)
if cleaned in [None, ""]:
- logger.warning("cleaned[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s'", type(cleaned), cleaned, domain, block_level)
+ logger.debug("cleaned[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s'", type(cleaned), cleaned, domain, block_level)
continue
elif blocked not in rows:
logger.warning("Cannot find blocked='%s' in rows()=%d: domain='%s',block_level='%s'", blocked,len(rows), domain, block_level)