Commit 2ba60d56 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_slap_tool: fixup SyntaxWarning

parent 00bfe674
......@@ -410,7 +410,7 @@ class SlapTool(BaseTool):
reference=software_product_reference,
follow_up__uid=project.getUid(),
validation_state='published')
if len(software_product_list) is 0:
if not len(software_product_list):
return dumps([])
if len(software_product_list) > 1:
raise NotImplementedError('Several Software Product with the same title.')
......
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