Commit 1730fc99 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Return empty if it was sofware release is empty

parent c5727e82
......@@ -3,4 +3,7 @@ software_release = context.portal_catalog.getResultValue(
url_string={'query': context.getUrlString(), 'key': 'ExactMatch'},
portal_type='Software Release')
if software_release is None:
return json.dumps("")
return json.dumps("%s (%s)" % (software_release.getTitle(), software_release.getVersion()))
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