Commit 424358be authored by Alexandre Boeglin's avatar Alexandre Boeglin

print a log message when setting a property fails in setVariationPropertyDict


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10164 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e65b4a24
......@@ -306,7 +306,12 @@ class Amount(Base, Variated):
raise KeyError, "Can not set the property variation '%s'" % \
property_id
else:
try:
self.setProperty(property_id, property_value)
except KeyError:
LOG("Amount", 200, "Can not set %s with value %s on %s" % \
(property_id, property_value, self.getRelativeUrl()))
raise
security.declareProtected(Permissions.AccessContentsInformation,
'getQuantityUnitRangeItemList')
......
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