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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Binh
erp5
Commits
223be8b0
Commit
223be8b0
authored
Nov 17, 2015
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable useless and too verbose LOG warnings.
parent
5b00999a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
product/ERP5/Document/Resource.py
product/ERP5/Document/Resource.py
+3
-3
product/ERP5/Document/SimulationMovement.py
product/ERP5/Document/SimulationMovement.py
+4
-3
No files found.
product/ERP5/Document/Resource.py
View file @
223be8b0
...
@@ -807,9 +807,9 @@ class Resource(XMLObject, XMLMatrix, VariatedMixin):
...
@@ -807,9 +807,9 @@ class Resource(XMLObject, XMLMatrix, VariatedMixin):
except
(
ArithmeticError
,
AttributeError
,
LookupError
,
TypeError
),
error
:
except
(
ArithmeticError
,
AttributeError
,
LookupError
,
TypeError
),
error
:
# For compatibility, we only log the error and return None.
# For compatibility, we only log the error and return None.
# No exception for the moment.
# No exception for the moment.
LOG
(
'Resource.convertQuantity'
,
WARNING
,
#
LOG('Resource.convertQuantity', WARNING,
'could not convert quantity for %s (%r)'
#
'could not convert quantity for %s (%r)'
%
(
self
.
getRelativeUrl
(),
error
))
#
% (self.getRelativeUrl(), error))
return
None
return
None
if
transformed_resource
is
not
None
:
if
transformed_resource
is
not
None
:
...
...
product/ERP5/Document/SimulationMovement.py
View file @
223be8b0
...
@@ -166,9 +166,10 @@ class SimulationMovement(PropertyRecordableMixin, Movement, ExplainableMixin):
...
@@ -166,9 +166,10 @@ class SimulationMovement(PropertyRecordableMixin, Movement, ExplainableMixin):
getState
=
applied_rule
.
getCausalityValue
()
\
getState
=
applied_rule
.
getCausalityValue
()
\
.
aq_explicit
.
getSimulationMovementSimulationState
.
aq_explicit
.
getSimulationMovementSimulationState
except
(
AttributeError
,
KeyError
):
except
(
AttributeError
,
KeyError
):
LOG
(
'SimulationMovement.getSimulationState'
,
WARNING
,
pass
'Could not acquire simulation state from %s'
# LOG('SimulationMovement.getSimulationState', WARNING,
%
self
.
getRelativeUrl
(),
error
=
True
)
# 'Could not acquire simulation state from %s'
# % self.getRelativeUrl(), error=True)
else
:
else
:
return
getState
(
self
)
return
getState
(
self
)
...
...
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