Commit b1683ed6 authored by Jérome Perrin's avatar Jérome Perrin

sys.exc_info() will only display confusing information here, we are not

handling an exception.
http://docs.python.org/dev/lib/module-sys.html#l2h-5138



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12543 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 106a8994
...@@ -1866,8 +1866,8 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base): ...@@ -1866,8 +1866,8 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
try: try:
new_sort_index = [] new_sort_index = []
for (key , so, as_type) in sort_index: for (original_key , so, as_type) in sort_index:
key = getNewKeyAndUpdateVariables(key) key = getNewKeyAndUpdateVariables(original_key)
if key is not None: if key is not None:
if as_type == 'int': if as_type == 'int':
key = 'CAST(%s AS SIGNED)' % key key = 'CAST(%s AS SIGNED)' % key
...@@ -1878,7 +1878,8 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base): ...@@ -1878,7 +1878,8 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
else: else:
new_sort_index.append('%s' % key) new_sort_index.append('%s' % key)
else: else:
LOG('SQLCatalog', WARNING, 'buildSQLQuery could not build the new sort index', error=sys.exc_info()) LOG('SQLCatalog', WARNING, 'buildSQLQuery could not build sort '
'index (%s -> %s)' % (original_key, key))
sort_index = join(new_sort_index,',') sort_index = join(new_sort_index,',')
sort_on = str(sort_index) sort_on = str(sort_index)
except ConflictError: except ConflictError:
......
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