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

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

parent c76aa299
master arnau arnau-TM-components-products-migration arnau-TM-isBuildable-with-multiple-BusinessLinks arnau-TM-jabber-client-desktop-notifications arnau-real-time-inventory-accounting bryton/py3 bt5_config catalog_filter cherry-pick-243c2f03 cherry-pick-304d7a28 erp5-component erp5-messenger erp5-vifib erp5_capture_flag erp5_catalog erp5_catalog_final erp5_corporate_identity erp5_discussion_tool erp5_forum erp5_hal_json_style_fix_restricted_access_with_traverse erp5_monitoring_app erp5_new_officejs erp5_new_officejs_2 erp5_new_officejs_3 erp5_new_officejs_4 erp5_new_officejs_5 erp5_officejs erp5_payslip_migration erp5_texteditor_migration experiment/coding_style_test_suite feat/olapy feat/pdm_content_translation feature/accounting-reports-stats feature/hal-actions-support feature/hal-support-update feature/jio-accounting-reports feature/jio-action-accounting feature/jio-selection-actions feature/json-allows-all-jio-actions feature/renderjs-matrixbox feature/renderjs-ui-no-header feature/rjs-listbox-stats feature/rjs-mass-transition feature/rjs-print-action fix/20180928-1D89375 fix/consistency_check_alarm fix/multiple_small_fixes_to_zodb_history_tab fix/support-request-app-empty fix_listbox_buttons for_testrunner_1 for_testrunner_2 for_testrunner_3 hateoas hotfix/accounting-test-timeout hotfix/callable_tool hotfix/field-keeps-request hotfix/jio-mass-transition hotfix/jio_view hotfix/pdm-test hotfix/rjs-accounting-tests hotfix/rjs-editability hotfix/rjs-form-less-invasive hotfix/rjs-formfields-padding hotfix/rjs-listbox-mutex hotfix/rjs-replace-query-with-uids hotfix/tests-cleanup initsite js-ui listbox_url macros_fix monitoring monitoring-graph notebook_roque officejs_monitoring ojs_wip old_erp5_text_editor_migration project_nexedi_net refactor/base_edit refactor/renderjs revert-38554dbe revert-6c89fe9b romain_monitoring_app roque_appstore_base roque_appstore_improvements roque_credentials roque_dev roque_drone_simulator roque_erp5 roque_fix_coordinates roque_officejs roque_quick scalability-master scalability-roque scalability-roque-2 scalability-run-command w3validator_removal wip test-ui test-rjsacc test-rjs renderjs-test erp5.util-0.4.56 erp5.util-0.4.55 erp5.util-0.4.54 erp5.util-0.4.53 erp5.util-0.4.52
No related merge requests found
......@@ -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