From: Roland Häder Date: Sat, 14 Oct 2023 00:55:45 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ce13193359558f1b6fe69432daf58c05958b023f;p=fba.git Continued: - also ignore empty content here, too --- diff --git a/fba/http/federation.py b/fba/http/federation.py index d3c6daa..92daf56 100644 --- a/fba/http/federation.py +++ b/fba/http/federation.py @@ -302,7 +302,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str: if software is not None and software != "": logger.info("domain='%s' is generated by software='%s' - Setting detection_mode=GENERATOR ...", domain, software) instances.set_detection_mode(domain, "GENERATOR") - elif isinstance(app_name, bs4.element.Tag) and isinstance(app_name.get("content"), str): + elif isinstance(app_name, bs4.element.Tag) and isinstance(app_name.get("content"), str) and app_name.get("content") != "": logger.debug("Found property=og:app_name, domain='%s'", domain) software = tidyup.domain(app_name.get("content"))