diff --git a/cookbook/integration/nextcloud_cookbook.py b/cookbook/integration/nextcloud_cookbook.py index c61a6d236..d4720222a 100644 --- a/cookbook/integration/nextcloud_cookbook.py +++ b/cookbook/integration/nextcloud_cookbook.py @@ -40,7 +40,8 @@ class NextcloudCookbook(Integration): if 'keywords' in recipe_json: try: for x in recipe_json['keywords'].split(','): - recipe.keywords.add(Keyword.objects.get_or_create(space=self.request.space, name=x)[0]) + if x.strip() != '': + recipe.keywords.add(Keyword.objects.get_or_create(space=self.request.space, name=x)[0]) except Exception: pass