From 8c6e0b56b0e82c50ee5f053356c9ab32e33fca0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 24 Feb 2011 16:08:02 +0000 Subject: [PATCH] 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 --- product/ERP5/Document/BusinessTemplate.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 1e9ae4b6f4..32eacf15e4 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -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: -- 2.30.9