- fixed exception: need to skip unwanted TLDs
if blocked in [None, ""]:
logger.debug("blocked[%s]='%s' is empty after tidyup.domain(): domain='%s',block_level='%s' - SKIPPED!", type(blocked), blocked, domain, block_level)
continue
+ elif not domain_helper.is_tld_wanted(blocked):
+ logger.debug("blocked='%s' is not wanted - SKIPPED!", blocked)
+ continue
elif validators.domain(blocked, rfc_2782=True) and blacklist.is_blacklisted(blocked):
logger.debug("blocked='%s' is blacklisted - SKIPPED!")
continue