From: Roland Häder Date: Fri, 11 Oct 2024 14:59:03 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=001e9e377729b7d2bd3117f948c6e9d868555636;p=fba.git Continued: - fixed exception: need to skip unwanted TLDs --- diff --git a/fba/networks/pleroma.py b/fba/networks/pleroma.py index 981e68d..c3d6322 100644 --- a/fba/networks/pleroma.py +++ b/fba/networks/pleroma.py @@ -128,6 +128,9 @@ def fetch_blocks(domain: str) -> list: 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