Commit 5977b8bb authored by Vincent Pelletier's avatar Vincent Pelletier

Products.ZSQLCatalog.Query.AutoQuery: Fix AttributeError in error path

parent c76aa299
......@@ -59,7 +59,7 @@ class AutoQuery(Query):
self.operator = operator
self.ignore_empty_string = kw.pop('ignore_empty_string', True)
if 'key' in kw and len(kw) > 2:
raise ValueError, '"key" parameter cannot be used when more than one column is given. key=%r' % (self.search_key, )
raise ValueError, '"key" parameter cannot be used when more than one column is given. key=%r' % (kw['key'], )
self.search_key = kw.pop('key', None)
def _createWrappedQuery(self, sql_catalog):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment