Commit 58b871a1 authored by Romain Courteaud's avatar Romain Courteaud

Bug fix.

Check if current supply link is not None.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3599 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 66c88059
......@@ -146,7 +146,8 @@ class SupplyChain(Path, XMLObject):
transformation_link_list.append(previous_link)
# Prevent infinite loop when 2 production_link have the same
# destination
if current_supply_link.isProductionSupplyLink():
if (current_supply_link is not None) and \
(current_supply_link.isProductionSupplyLink()):
raise "SupplyChainError",\
"Those SupplyLinks are in conflict: %r and %r" %\
(current_supply_link.getRelativeUrl(),\
......
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