Commit 67814545 authored by Jérome Perrin's avatar Jérome Perrin

remove LOG and a except without specified exception type


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3870 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d98d68d
......@@ -157,7 +157,7 @@ class SimulationMovement(Movement):
try:
parent_state = self.aq_parent.getSimulationState()
return parent_to_movement_simulation_state[parent_state]
except:
except KeyError, AttributeError:
LOG('ERP5 WARNING:',100, 'Could not acquire getSimulationState on %s' % self.getRelativeUrl())
return None
......@@ -464,9 +464,9 @@ class SimulationMovement(Movement):
return 0
# XXX Those properties are the same than defined in DeliveryBuilder.
# We need to defined it only 1 time.
LOG('SimulationMovement.isDivergent',0,delivery.getPath())
LOG('SimulationMovement.isDivergent self.getStartDate()',0,self.getStartDate())
LOG('SimulationMovement.isDivergent delivery.getStartDate()',0,delivery.getStartDate())
#LOG('SimulationMovement.isDivergent',0,delivery.getPath())
#LOG('SimulationMovement.isDivergent self.getStartDate()',0,self.getStartDate())
#LOG('SimulationMovement.isDivergent delivery.getStartDate()',0,delivery.getStartDate())
if self.getSourceSection() != delivery.getSourceSection() or \
self.getDestinationSection() != delivery.getDestinationSection() or \
self.getSource() != delivery.getSource() or \
......@@ -501,8 +501,8 @@ class SimulationMovement(Movement):
delivery_ratio = self.getDeliveryRatio()
if delivery_ratio is not None:
d_quantity *= delivery_ratio
LOG('SimulationMovement.isDivergent d_quantity',0,d_quantity)
LOG('SimulationMovement.isDivergent quantity + d_error',0,quantity + d_error)
#LOG('SimulationMovement.isDivergent d_quantity',0,d_quantity)
#LOG('SimulationMovement.isDivergent quantity + d_error',0,quantity + d_error)
if d_quantity != quantity + d_error:
return 1
return 0
......
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