From 9295b8813e879add3ca0daabc61d24d2687a810e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Sun, 27 Aug 2006 21:32:13 +0000 Subject: [PATCH] Use __traceback_info__ rather than changing the exception message git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9491 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BusinessTemplate.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 7da93bc8f0..39cf86688d 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -477,13 +477,8 @@ class ObjectTemplateItem(BaseTemplateItem): while connection is None: obj=obj.aq_parent connection=obj._p_jar - try: - obj = connection.importFile(file, customImporters=customImporters) - except POSException.ExportError, e: - LOG('BusinessTemplate', PANIC, 'Failed importing %s' % file_name, error=e) - if e.args == ('Invalid export header',): - e.args = ('%s (filename: %s)' % (e.args[0], file_name), ) - raise e + __traceback_info__ = 'Importing %s' % file_name + obj = connection.importFile(file, customImporters=customImporters) self._objects[file_name[:-4]] = obj def preinstall(self, context, installed_bt, **kw): -- 2.30.9