From: Roland Häder Date: Wed, 11 Oct 2023 11:42:32 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab24ce4886d53c10d93c99a4f368a7eaea4a4824;p=fba.git Continued: - also need to skip empty strings --- diff --git a/fba/http/federation.py b/fba/http/federation.py index 46c1da6..d3c6daa 100644 --- a/fba/http/federation.py +++ b/fba/http/federation.py @@ -310,7 +310,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str: if software is not None and software != "": logger.debug("domain='%s' has application-name='%s' - Setting detection_mode=app_name ...", domain, software) instances.set_detection_mode(domain, "APP_NAME") - elif isinstance(site_name, bs4.element.Tag) and isinstance(site_name.get("content"), str): + elif isinstance(site_name, bs4.element.Tag) and isinstance(site_name.get("content"), str) and site_name.get("content") != "": logger.debug("Found property=og:site_name, domain='%s'", domain) software = tidyup.domain(site_name.get("content"))