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"))