From 375c6b54299697e5a5dd6b07785cb99630c9e157 Mon Sep 17 00:00:00 2001
From: Arnaud Fontaine <arnaud.fontaine@nexedi.com>
Date: Fri, 16 Feb 2018 21:26:26 +0900
Subject: [PATCH] Cosmetic: Use LOG() error argument.

---
 product/ERP5/Document/BusinessTemplate.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 342693d1b9..01abc9c0ee 100644
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -6344,12 +6344,11 @@ Business Template is a set of definitions, such as skins, portal types and categ
                                               temp_obj.getReference(),
                                               version)
         except Exception, e:
-          import traceback
           LOG("BusinessTemplate", WARNING,
-              "Could not import component '%s' ('%s') from the filesystem: %s" %
+              "Could not import component '%s' ('%s') from the filesystem" %
               (temp_obj.getReference(),
-               temp_obj.getSourceReference(),
-               traceback.format_exc()))
+               temp_obj.getSourceReference()),
+              error=True)
 
           failed_import_dict[temp_obj.getReference()] = str(e)
         else:
-- 
2.30.9