elif "powered by" in software:
logger.debug("software='%s' has 'powered by' in it", software)
software = version.strip_powered_by(software)
- elif isinstance(software, str) and " by " in software:
+
+ if isinstance(software, str) and " by " in software:
logger.debug("software='%s' has ' by ' in it", software)
software = version.strip_until(software, " by ")
elif isinstance(software, str) and " - " in software:
software = software[start + 11:].strip()
logger.debug("software='%s'", software)
- software = strip_until(software, " - ")
+ if " - " in software:
+ software = strip_until(software, " - ")
logger.debug("software='%s' - EXIT!", software)
return software
software = software[0:end].strip()
logger.debug("software[%s]='%s'", type(software), software)
- software = strip_until(software, " - ")
+ if " - " in software:
+ software = strip_until(software, " - ")
logger.debug("software='%s' - EXIT!", software)
return software