Minor bug fix

This commit is contained in:
Bernardo Damele 2008-12-01 23:27:51 +00:00
parent 034a3f387a
commit a777f1ca35

View File

@ -128,6 +128,12 @@ def formatDBMSfp(versions=None):
return "%s %s" % (kb.dbms, versions) return "%s %s" % (kb.dbms, versions)
elif isinstance(versions, (list, set, tuple)): elif isinstance(versions, (list, set, tuple)):
return "%s %s" % (kb.dbms, " and ".join([version for version in versions])) return "%s %s" % (kb.dbms, " and ".join([version for version in versions]))
elif not versions:
warnMsg = "unable to extensively fingerprint the back-end "
warnMsg += "DBMS version"
logger.warn(warnMsg)
return kb.dbms
def __formatFingerprintString(values, chain=" or "): def __formatFingerprintString(values, chain=" or "):