From: Roland Häder Date: Tue, 24 Oct 2023 18:45:11 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f9d221393d508c052c56cbc8abf04aa411776454;p=fba.git Continued: - some Friendica instances may have no table tag --- diff --git a/fba/networks/friendica.py b/fba/networks/friendica.py index 1372093..1434697 100644 --- a/fba/networks/friendica.py +++ b/fba/networks/friendica.py @@ -70,7 +70,10 @@ def fetch_blocks(domain: str) -> list: table = block_tag.find("table") logger.debug("table[]='%s'", type(table)) - if table.find("tbody"): + if table is None: + logger.warning("domain='%s' has no table tag - EXIT !", domain) + return list() + elif table.find("tbody"): rows = table.find("tbody").find_all("tr") else: rows = table.find_all("tr")