Commit 29f4e2c7 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_slap_tool: fixup SyntaxWarning

parent 41333622
......@@ -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