From 9087ceff8aac263f512d9cb780628d2afe5f31a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 26 Jun 2023 07:44:26 +0200 Subject: [PATCH] Fixed: - content can sometimes be a tag, not a string --- fba/networks/lemmy.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5