Commit 9295b881 authored by Jérome Perrin's avatar Jérome Perrin

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
parent 6576dad1
......@@ -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):
......
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