[IMP] expression.py: added a clue to debug fuzzy tracebacks related to domain badly written

bzr revid: qdp-launchpad@openerp.com-20130306152328-qdlil19diks4mvkt
This commit is contained in:
Quentin (OpenERP) 2013-03-06 16:23:28 +01:00
parent d383666364
commit d97916a063
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ def normalize_domain(domain):
expected -= 1
else:
expected += op_arity.get(token, 0) - 1
assert expected == 0
assert expected == 0, 'This domain is syntactically not correct: %s' % (domain)
return result