logger.debug("domain='%s' - AFTER!", domain)
if domain in [None, ""]:
- logger.debug("domain='%s' is empty after tidyup.domain() - SKIPPED!", domain)
+ logger.debug("domain[%s]='%s' is empty after tidyup.domain(): item[domain]='%s' - SKIPPED!", type(domain), domain, item["domain"])
continue
logger.debug("domain='%s' - BEFORE!", domain)
logger.debug("domain='%s' - AFTER!", domain)
if domain in [None, ""]:
- logger.debug("domain='%s' is empty after tidyup.domain() - SKIPPED!", domain)
+ logger.debug("domain[%s]='%s' is empty after tidyup.domain() - SKIPPED!", type(domain), domain)
continue
logger.debug("domain='%s' - BEFORE!", domain)
logger.debug("domain='%s' - AFTER!", domain)
if domain in [None, ""]:
- logger.debug("domain='%s' is empty after tidyup.domain() - SKIPPED!", domain)
+ logger.debug("domain[%s]='%s' is empty after tidyup.domain(): href='%s' - SKIPPED!", type(domain), domain, href)
continue
logger.debug("domain='%s' - BEFORE!", domain)
logger.debug("domain='%s' - AFTER!", domain)
if domain in [None, ""]:
- logger.debug("domain='%s' is empty after tidyup.domain() - SKIPPED!", domain)
+ logger.debug("domain[%s]='%s' is empty after tidyup.domain() - SKIPPED!", type(domain), domain)
continue
elif not domain_helper.is_wanted(domain):
logger.debug("domain='%s' is not wanted - SKIPPED!", domain)
logger.debug("domain='%s' - AFTER!", domain)
if domain in [None, ""]:
- logger.debug("domain='%s' is empty after tidyup.domain() - SKIPPED!", domain)
+ logger.debug("domain[%s]='%s' is empty after tidyup.domain(): row.contents[0]='%s' - SKIPPED!", type(domain), domain, row.contents[0])
continue
logger.debug("domain='%s' - BEFORE!", domain)
logger.debug("domain='%s' - AFTER!", domain)
if domain in [None, ""]:
- logger.debug("domain='%s' is empty after tidyup.domain(): row[hostname]='%s' - SKIPPED!", domain, row["hostname"])
+ logger.debug("domain[%s]='%s' is empty after tidyup.domain(): row[hostname]='%s' - SKIPPED!", type(domain), domain, row["hostname"])
continue
logger.debug("domain='%s' - BEFORE!", domain)
domain = tidyup.domain(row["name"]) if row["name"] not in [None, ""] else None
logger.debug("domain='%s' - AFTER!", domain)
- if domain is None and domain == "":
- logger.debug("domain='%s' is empty after tidyup.domain() - SKIPPED!", domain)
+ if domain in [None, ""]:
+ logger.debug("domain[%s]='%s' is empty after tidyup.domain() - SKIPPED!", type(domain), domain)
continue
logger.debug("domain='%s' - BEFORE!", domain)
domain = urlparse(row["url"]).netloc.lower().split(":")[0]
logger.debug("domain='%s' - AFTER!", domain)
- if domain is None and domain == "":
- logger.debug("domain='%s' is empty after tidyup.domain() - SKIPPED!", domain)
+ if domain [None, ""]:
+ logger.debug("domain[%s]='%s' is empty after tidyup.domain() - SKIPPED!", type(domain), domain)
continue
logger.debug("domain='%s' - BEFORE!", domain)
logger.debug("domain='%s' - AFTER!", domain)
if domain in [None, ""]:
- logger.debug("domain='%s' is empty after tidyup.domain() from origin='%s' - SKIPPED!", domain, row["domain"])
+ logger.debug("domain[%s]='%s' is empty after tidyup.domain() from origin='%s' - SKIPPED!", type(domain), domain, row["domain"])
continue
elif domain not in peers:
logger.debug("Appending domain='%s' to peers list for relay='%s' ...", domain, row["domain"])
logger.debug("domain='%s' - AFTER!", domain)
if domain in [None, ""]:
- logger.debug("domain='%s' is empty after tidyup.domain() from origin='%s' - SKIPPED!", domain, row["domain"])
+ logger.debug("domain[%s]='%s' is empty after tidyup.domain() from origin='%s' - SKIPPED!", type(domain), domain, row["domain"])
continue
elif domain not in peers:
logger.debug("Appending domain='%s' to peers list for relay='%s' ...", domain, row["domain"])
logger.debug("domain='%s' - AFTER!", domain)
if domain in [None, ""]:
- logger.debug("domain='%s' is empty after tidyup.domain() from origin='%s' - SKIPPED!", domain, row["domain"])
+ logger.debug("domain[%s]='%s' is empty after tidyup.domain() from origin='%s' - SKIPPED!", type(domain), domain, row["domain"])
continue
elif domain not in peers:
logger.debug("Appending domain='%s' to peers list for relay='%s' ...", domain, row["domain"])
logger.debug("blocked='%s' - AFTER!", blocked)
if blocked in [None, ""]:
- logger.warning("blocked='%s' is empty after tidyup.domain(): domain='%s',block_level='%s' - SKIPPED!", blocked, domain, block_level)
+ logger.warning("blocked[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s' - SKIPPED!", blocked, domain, block_level)
continue
elif validators.domain(blocked) 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 is empty after tidyup.domain(): domain='%s',block_level='%s'", domain, block_level)
+ logger.warning("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 == "":
- logger.warning("blocked is empty after tidyup.domain(): domain='%s',block_level='%s'", domain, block_level)
+ 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)
continue
logger.debug("Checking %d blockdict records ...", len(blockdict))
if blocked not in rows or "reason" not in rows[blocked]:
logger.warning("Cannot find blocked='%s' in rows()=%d,domain='%s' - BREAK!", blocked, len(rows), domain)
break
- elif blocked == "":
- logger.warning("blocked is empty after tidyup.domain(): domain='%s',block_level='%s'", domain, block_level)
+ elif blocked in [None, ""]:
+ logger.warning("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 record(s) ...", len(blockdict))