Commit a76f0528 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Log a message if an exception happens.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@978 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b104e7cb
......@@ -352,13 +352,16 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
kw['uid'] = index
kw['insert_catalog_line'] = insert_catalog_line
# LOG
# LOG("Call SQL Method %s with args:" % method_name,0, str(kw))
# Alter row
# Create row
try:
zope_root = self.getPortalObject().aq_parent
root_indexable = int(getattr(zope_root,'isIndexable',1))
if root_indexable:
#LOG("Call SQL Method %s with args:" % method_name,0, str(kw))
method(**kw)
except:
LOG("SQLCatalog Warning: could not catalog object with method %s" % method_name,100, str(path))
#except:
# # # This is a real LOG message
# # # which is required in order to be able to import .zexp files
......
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