From ab24ce4886d53c10d93c99a4f368a7eaea4a4824 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 11 Oct 2023 13:42:32 +0200 Subject: [PATCH] Continued: - also need to skip empty strings --- fba/http/federation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) -- 2.39.5