From: Roland Häder Date: Sat, 9 Dec 2023 05:14:48 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=21c7c13dcdf897008a7f340e606c947092ba51bd;p=fba.git Continued: - logged domain name - better check variable software against None and empty string --- diff --git a/fba/http/federation.py b/fba/http/federation.py index 88a100e..f39bdc8 100644 --- a/fba/http/federation.py +++ b/fba/http/federation.py @@ -455,14 +455,14 @@ def determine_software(domain: str, path: str = None) -> str: logger.debug("Returning None - EXIT!") return None - logger.debug("Setting original software='%s' ...", software) + logger.debug("Setting original software='%s' for domain='%s' ...", software, domain) instances.set_original_software(domain, software) logger.debug("software='%s'- BEFORE!", software) software = software_helper.alias(software) logger.debug("software['%s']='%s' - AFTER!", type(software), software) - if str(software) == "": + if software in [None, ""]: logger.debug("software for domain='%s' was not detected, trying generator ...", domain) software = fetch_generator_from_path(domain) elif len(str(software)) > 0 and ("." in software or " " in software):