fix for bug reported by shiftzwei@gmail.com regarding formatDBMSfp with unknown DBMS version

This commit is contained in:
Miroslav Stampar
2010-04-09 10:40:08 +00:00
parent 63c70018ca
commit fcceceed45
2 changed files with 2 additions and 2 deletions

View File

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