Skip to content

Commit b212321

Browse files
committed
1 parent b02be96 commit b212321

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/core/agent.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ def prefixQuery(self, expression, prefix=None, where=None, clause=None):
245245
if not (expression and expression[0] == ';') and not (query and query[-1] in ('(', ')') and expression and expression[0] in ('(', ')')) and not (query and query[-1] == '('):
246246
query += " "
247247

248-
if query:
249-
query = "%s%s" % (query.replace('\\', BOUNDARY_BACKSLASH_MARKER), expression)
248+
query = "%s%s" % ((query or "").replace('\\', BOUNDARY_BACKSLASH_MARKER), expression)
250249

251250
return query
252251

0 commit comments

Comments
 (0)