From ce13193359558f1b6fe69432daf58c05958b023f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 14 Oct 2023 02:55:45 +0200 Subject: [PATCH] Continued: - also ignore empty content here, too --- 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 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")) -- 2.39.5