Commit a789d4e6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do not raise an exception if property is not defined.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31945 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6e576554
...@@ -71,8 +71,8 @@ class FloatDivergenceTester(Predicate, DivergenceTesterMixin): ...@@ -71,8 +71,8 @@ class FloatDivergenceTester(Predicate, DivergenceTesterMixin):
lambda x:False)(tested_property): lambda x:False)(tested_property):
decision_value = decision_movement.getRecordedProperty(tested_property) decision_value = decision_movement.getRecordedProperty(tested_property)
else: else:
decision_value = self._getPropertyValue(decision_movement, tested_property) decision_value = self._getPropertyValue(decision_movement, tested_property) or 0.0
prevision_value = self._getPropertyValue(prevision_movement, tested_property) prevision_value = self._getPropertyValue(prevision_movement, tested_property) or 0.0
# use delivery_ratio if specified # use delivery_ratio if specified
if self.getProperty('use_delivery_ratio') and \ if self.getProperty('use_delivery_ratio') and \
......
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