]> git.mxchange.org Git - fba.git/commitdiff
Fixed:
authorRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2023 05:44:26 +0000 (07:44 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2023 05:44:26 +0000 (07:44 +0200)
- content can sometimes be a tag, not a string

fba/networks/lemmy.py

index 37cf8cc8c9a03aab29778708ff52e1462e074775..47afc1b5833d67abdbc1ecc414aaca4de4d10d16 100644 (file)
@@ -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