Commit 375c6b54 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Cosmetic: Use LOG() error argument.

parent 884a6b36
...@@ -6344,12 +6344,11 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -6344,12 +6344,11 @@ Business Template is a set of definitions, such as skins, portal types and categ
temp_obj.getReference(), temp_obj.getReference(),
version) version)
except Exception, e: except Exception, e:
import traceback
LOG("BusinessTemplate", WARNING, 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.getReference(),
temp_obj.getSourceReference(), temp_obj.getSourceReference()),
traceback.format_exc())) error=True)
failed_import_dict[temp_obj.getReference()] = str(e) failed_import_dict[temp_obj.getReference()] = str(e)
else: else:
......
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