From 323bc106bb37febb52eeb87c2eaca720d3dc1d53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 25 Jun 2023 18:01:02 +0200 Subject: [PATCH] Continued: - fixed exception --- fba/networks/lemmy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fba/networks/lemmy.py b/fba/networks/lemmy.py index c866481..f589664 100644 --- a/fba/networks/lemmy.py +++ b/fba/networks/lemmy.py @@ -221,7 +221,8 @@ def fetch_instances(domain: str, origin: str) -> list: logger.debug("Found %d blocked instance(s) ...", len(rows)) for tag in rows: logger.debug("tag[]='%s'", type(tag)) - peer = tidyup.domain(tag.contents[0]) + text = tag.contents[0] if isinstance(tag.contents[0], str) else tag.contents[0].text + peer = tidyup.domain(text) logger.debug("peer='%s'", peer) if peer == "": -- 2.39.5