]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 25 Jun 2023 16:01:02 +0000 (18:01 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 25 Jun 2023 16:01:02 +0000 (18:01 +0200)
- fixed exception

fba/networks/lemmy.py

index c866481b8406f291558e169da56706e239f71333..f589664620d7568ed220102a7c90fec54e7412e0 100644 (file)
@@ -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 == "":