if not instances.is_registered(domain):
raise Exception(f"domain='{domain}' is not registered but function is invoked.")
- logger.debug("Fetching mastodon blocks from domain='%s'", domain)
+ logger.info("Fetching mastodon blocks from domain='%s'", domain)
doc = None
for path in ["/about/more", "/about"]:
try:
blocklist = list()
- logger.debug("Invoking federation.fetch_blocks(%s) ...", domain)
- rows = federation.fetch_blocks(domain)
-
- logger.debug("rows[%s]()=%d", type(rows), len(rows))
- if len(rows) == 0:
- logger.debug("domain='%s' has returned zero rows, trying /about/more page ...", domain)
- rows = fetch_blocks_from_about(domain)
+ logger.debug("Invoking fetch_blocks_from_about(%s) ...", domain)
+ rows = fetch_blocks_from_about(domain)
logger.debug("rows[%s]()=%d", type(rows), len(rows))
if len(rows) > 0: