Commit 1730fc99 by Rafael Monnerat

slapos_jio: Return empty if it was sofware release is empty

1 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()))
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!