diff --git a/lib/core/common.py b/lib/core/common.py index 7021ea5de..48dd8b9f4 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -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):