]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 11 Oct 2024 14:59:03 +0000 (16:59 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 11 Oct 2024 14:59:03 +0000 (16:59 +0200)
- fixed exception: need to skip unwanted TLDs

fba/networks/pleroma.py

index 981e68d93d6d89dd72525847429efb04911353f5..c3d63227a2e6ee3a276b7612bf2038c5d815bdb1 100644 (file)
@@ -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