Commit 8b3237ef authored by Vincent Pelletier's avatar Vincent Pelletier

Display "oids" length when complaining about it.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1960 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 923350b9
...@@ -31,7 +31,8 @@ LOG_QUERIES = False ...@@ -31,7 +31,8 @@ LOG_QUERIES = False
def splitOIDField(tid, oids): def splitOIDField(tid, oids):
if (len(oids) % 8) != 0 or len(oids) == 0: if (len(oids) % 8) != 0 or len(oids) == 0:
raise DatabaseFailure('invalid oids for tid %x' % tid) raise DatabaseFailure('invalid oids length for tid %d: %d' % (tid,
len(oids)))
oid_list = [] oid_list = []
append = oid_list.append append = oid_list.append
for i in xrange(0, len(oids), 8): for i in xrange(0, len(oids), 8):
......
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