Commit 8ac90175 authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: When migrating from FS, display full traceback when modules cannot be imported.

parent 140be41d
...@@ -6607,7 +6607,8 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -6607,7 +6607,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
subsubmodule_name) subsubmodule_name)
except ImportError, e: except ImportError, e:
LOG("BusinessTemplate", WARNING, LOG("BusinessTemplate", WARNING,
"Skipping %s: Cannot be imported (%s)" % (filepath, e)) "Skipping %s: Cannot be imported (%s)" % (filepath, e),
error=True)
continue continue
except AttributeError, e: except AttributeError, e:
LOG("BusinessTemplate", WARNING, LOG("BusinessTemplate", WARNING,
...@@ -6634,7 +6635,8 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -6634,7 +6635,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
interface_module = __import__(source_reference, {}, {}, source_reference) interface_module = __import__(source_reference, {}, {}, source_reference)
except ImportError, e: except ImportError, e:
LOG("BusinessTemplate", WARNING, LOG("BusinessTemplate", WARNING,
"Skipping %s: Cannot be imported (%s)" % (filepath, e)) "Skipping %s: Cannot be imported (%s)" % (filepath, e),
error=True)
continue continue
from zope.interface.interface import InterfaceClass from zope.interface.interface import InterfaceClass
...@@ -6662,7 +6664,8 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -6662,7 +6664,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
mixin_module = __import__(source_reference, {}, {}, source_reference) mixin_module = __import__(source_reference, {}, {}, source_reference)
except ImportError, e: except ImportError, e:
LOG("BusinessTemplate", WARNING, LOG("BusinessTemplate", WARNING,
"Skipping %s: Cannot be imported (%s)" % (filepath, e)) "Skipping %s: Cannot be imported (%s)" % (filepath, e),
error=True)
continue continue
mixin_class_name = None mixin_class_name = None
......
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