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