In v5 error in pricing rule

Hi,

i wonder why i got this error recently, and i dont know how to fix this

Traceback (innermost last):
File “/home/myme/frappe-bench/apps/frappe/frappe/app.py”, line 51, in application
response = frappe.handler.handle()
File “/home/myme/frappe-bench/apps/frappe/frappe/handler.py”, line 62, in handle
execute_cmd(cmd)
File “/home/myme/frappe-bench/apps/frappe/frappe/handler.py”, line 85, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/myme/frappe-bench/apps/frappe/frappe/init.py”, line 708, in call
return fn(*args, **newargs)
File “/home/myme/frappe-bench/apps/erpnext/erpnext/stock/get_item_details.py”, line 61, in get_item_details
out.update(get_pricing_rule_for_item(args))
File “/home/myme/frappe-bench/apps/erpnext/erpnext/accounts/doctype/pricing_rule/pricing_rule.py”, line 145, in get_pricing_rule_for_item
pricing_rules = get_pricing_rules(args)
File “/home/myme/frappe-bench/apps/erpnext/erpnext/accounts/doctype/pricing_rule/pricing_rule.py”, line 204, in get_pricing_rules
transaction_type=args.transaction_type, conditions=conditions), args, as_dict=1)
File “/home/myme/frappe-bench/apps/frappe/frappe/database.py”, line 129, in sql
self._cursor.execute(query, values)
File “/home/myme/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 185, in execute
for key, item in args.iteritems())
TypeError: not enough arguments for format string
"

its happens when m about to add an item to an order

thanks

found the error, its because there is % sign in customer group , please add validation for this

@bobzz_zone - GitHub Issue

@neilLasrado can you add?