avoiding --no-cast/--hex warning message before a DBMS is fingerprinted

This commit is contained in:
Miroslav Stampar 2012-05-08 14:06:41 +00:00
parent 64c241fe92
commit 6af110d631

View File

@ -466,7 +466,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
kb.safeCharEncode = False
if not kb.testMode and value is None and Backend.getDbms():
if not kb.testMode and value is None and Backend.getDbms() and conf.dbmsHandler:
warnMsg = "in case of continuous data retrieval problems you are advised to try "
warnMsg += "a switch '--no-cast' and/or switch '--hex'"
singleTimeWarnMessage(warnMsg)