diff --git a/product/ERP5Type/dynamic/component_package.py b/product/ERP5Type/dynamic/component_package.py index c48814bff7ca798ae5511ca9c28ce1f43fc8816d..753750afbc8a17153ba5bb41f4903947cbbc4291 100644 --- a/product/ERP5Type/dynamic/component_package.py +++ b/product/ERP5Type/dynamic/component_package.py @@ -372,8 +372,8 @@ class ComponentDynamicPackage(ModuleType): reraise( ComponentImportError, - "%s: cannot load Component %s :\n%s" % ( - fullname, name, traceback.format_exc()), + ComponentImportError("%s: cannot load Component %s :\n%s" % ( + fullname, name, traceback.format_exc())), sys.exc_info()[2]) # Add the newly created module to the Version package and add it as an