From 6af110d6319cbaa28ca7b15c28a5329e65e8455d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 8 May 2012 14:06:41 +0000 Subject: [PATCH] avoiding --no-cast/--hex warning message before a DBMS is fingerprinted --- lib/request/inject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/inject.py b/lib/request/inject.py index 94dc8bf34..f04b97754 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -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)