We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b02be96 commit b212321Copy full SHA for b212321
1 file changed
lib/core/agent.py
@@ -245,8 +245,7 @@ def prefixQuery(self, expression, prefix=None, where=None, clause=None):
245
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] == '('):
246
query += " "
247
248
- if query:
249
- query = "%s%s" % (query.replace('\\', BOUNDARY_BACKSLASH_MARKER), expression)
+ query = "%s%s" % ((query or "").replace('\\', BOUNDARY_BACKSLASH_MARKER), expression)
250
251
return query
252
0 commit comments