[Erp5-report] r9491 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun Aug 27 23:32:17 CEST 2006
Author: jerome
Date: Sun Aug 27 23:32:13 2006
New Revision: 9491
URL: http://svn.erp5.org?rev=9491&view=rev
Log:
Use __traceback_info__ rather than changing the exception message
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=9491&r1=9490&r2=9491&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Sun Aug 27 23:32:13 2006
@@ -477,13 +477,8 @@
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):
More information about the Erp5-report
mailing list