logger.debug("response.ok='%s',response.status_code=%d,response.text()=%d", response.ok, response.status_code, len(response.text))
if response.ok and response.status_code == 200 and response.text != "":
logger.debug("Returned %d Bytes for processing", len(response.text.strip()))
- domains = response.text.split("\n")
+ domains = response.text.strip().split("\n")
logger.info("Processing %d domains ...", len(domains))
for domain in domains:
logger.debug("domain='%s' - BEFORE!", domain)
- domain = tidyup.domain(domain)
+ domain = tidyup.domain(domain) if domain != None and domain != "" else None
logger.debug("domain='%s' - AFTER!", domain)
- if domain == "":
- logger.debug("domain is empty - SKIPPED!")
+ if domain is None or domain == "":
+ logger.debug("domain='%s' is empty - SKIPPED!", domain)
continue
elif not domain_helper.is_wanted(domain):
logger.debug("domain='%s' is not wanted - SKIPPED!", domain)