From: Roland Häder Date: Mon, 26 Jun 2023 05:44:26 +0000 (+0200) Subject: Fixed: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9087ceff8aac263f512d9cb780628d2afe5f31a7;p=fba.git Fixed: - content can sometimes be a tag, not a string --- diff --git a/fba/networks/lemmy.py b/fba/networks/lemmy.py index 37cf8cc..47afc1b 100644 --- a/fba/networks/lemmy.py +++ b/fba/networks/lemmy.py @@ -154,6 +154,9 @@ def fetch_blocks(domain: str, nodeinfo_url: str) -> list: if content is None: logger.debug("domain='%s' has returned empty header='%s' - SKIPPED!", domain, header) continue + elif not isinstance(content, str): + logger.debug("content[]='%s' is not supported/wanted type 'str' - SKIPPED!", type(content)) + continue elif content.lower() in translations: logger.debug("Found header with blocked instances - BREAK!") found = header