fix for bug reported by dragoun dash (TypeError: sequence item 0: expected string, NoneType found)

This commit is contained in:
Miroslav Stampar 2010-08-08 22:25:33 +00:00
parent 468eeb6ccf
commit 6eab7997d1

View File

@ -161,7 +161,10 @@ def formatDBMSfp(versions=None):
@rtype: C{str}
"""
if ( not versions or versions == [None] ) and kb.dbmsVersion and kb.dbmsVersion[0] != "Unknown":
while None in versions:
versions.remove(None)
if not versions and kb.dbmsVersion and kb.dbmsVersion[0] != "Unknown":
versions = kb.dbmsVersion
if isinstance(versions, basestring):