Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
659d9ac5
Commit
659d9ac5
authored
Feb 24, 2014
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: Do not catch BaseException (bad practise).
parent
074e1cdb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
product/ERP5Type/mixin/component.py
product/ERP5Type/mixin/component.py
+1
-1
No files found.
product/ERP5Type/mixin/component.py
View file @
659d9ac5
...
@@ -296,7 +296,7 @@ class ComponentMixin(PropertyRecordableMixin, Base):
...
@@ -296,7 +296,7 @@ class ComponentMixin(PropertyRecordableMixin, Base):
try:
try:
compile(source_code, '
<
string
>
', '
exec
')
compile(source_code, '
<
string
>
', '
exec
')
return [], []
return [], []
except
Base
Exception, error:
except Exception, error:
if isinstance(error, SyntaxError):
if isinstance(error, SyntaxError):
error = '
%
4
d
,
%
4
d
:
%
s
' % (error.lineno,
error = '
%
4
d
,
%
4
d
:
%
s
' % (error.lineno,
error.offset,
error.offset,
...
...
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