Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
erp5
Commits
8ac90175
Commit
8ac90175
authored
Mar 18, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: When migrating from FS, display full traceback when modules cannot be imported.
parent
140be41d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+6
-3
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
8ac90175
...
...
@@ -6607,7 +6607,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
subsubmodule_name
)
except
ImportError
,
e
:
LOG
(
"BusinessTemplate"
,
WARNING
,
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
))
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
),
error
=
True
)
continue
except
AttributeError
,
e
:
LOG
(
"BusinessTemplate"
,
WARNING
,
...
...
@@ -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
)
except
ImportError
,
e
:
LOG
(
"BusinessTemplate"
,
WARNING
,
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
))
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
),
error
=
True
)
continue
from
zope.interface.interface
import
InterfaceClass
...
...
@@ -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
)
except
ImportError
,
e
:
LOG
(
"BusinessTemplate"
,
WARNING
,
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
))
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
),
error
=
True
)
continue
mixin_class_name
=
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment