Commit 8c6e0b56 authored by Jérome Perrin's avatar Jérome Perrin

with portal type as classes, this can fail with other reason than...

with portal type as classes, this can fail with other reason than AttributeError, use __traceback_info__ to have debugging info in the error_log


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43682 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eb10ad7f
......@@ -1084,11 +1084,8 @@ class ObjectTemplateItem(BaseTemplateItem):
obj._initBTrees()
obj = obj._getCopy(container)
self.removeProperties(obj, 0)
try:
container._setObject(object_id, obj)
except AttributeError:
LOG("BT, install", 0, object_id)
raise
__traceback_info__ = (container, object_id, obj)
container._setObject(object_id, obj)
obj = container._getOb(object_id)
if not object_existed:
......
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