Commit d766ac50 authored by Łukasz Nowak's avatar Łukasz Nowak

- raise exception with parenthesis


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33516 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e88b095
......@@ -286,7 +286,8 @@ class TradeCondition(Path, Transformation, XMLMatrix):
for movement in movement_list:
movement_reference = movement.getReference()
if movement_reference is None:
raise ValueError, 'Reference on Trade Model Line is None. Reference must be set.'
raise ValueError('Reference on Trade Model Line is None. '
'Reference must be set.')
for model_line in trade_model_line_composed_list:
if model_line.getReference() == movement_reference and\
model_line.isCreateLine():
......
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