From 534f51f9fc576eb2e13ea2d4c2782e4a6ff4aad6 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 14 Jan 2011 14:20:28 +0000 Subject: [PATCH] Minor bug fix --- lib/core/agent.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index a752b8ba1..11fba9a3e 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -670,7 +670,10 @@ class Agent: @rtype: C{str} """ - return queries[getIdentifiedDBMS()].case.query % expression + if getIdentifiedDBMS() is not None and hasattr(queries[getIdentifiedDBMS()], "case"): + return queries[getIdentifiedDBMS()].case.query % expression + else: + return expression def addPayloadDelimiters(self, inpStr): """