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): """